Skip to content

Instantly share code, notes, and snippets.

View elnurxf's full-sized avatar
🎯
Building future

Elnur Akhundov elnurxf

🎯
Building future
View GitHub Profile
@elnurxf
elnurxf / AzerbaijanCarPlates.php
Created November 6, 2023 07:07
Azerbaijan Car Plates Validation Rule for Laravel
<?php
namespace App\Rules;
use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
class AzerbaijanCarPlates implements ValidationRule
{
private const LICENSE_NUMBER_EXPRESSIONS = [
<?php
/**
*
* Detect country based on CloudFlare HTTP_CF_IPCOUNTRY headers
* Set Default language for specific region
*
* See: https://support.cloudflare.com/hc/en-us/articles/205072537
*/
namespace App\Http\Middleware;