This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Rules; | |
use Closure; | |
use Illuminate\Contracts\Validation\ValidationRule; | |
class AzerbaijanCarPlates implements ValidationRule | |
{ | |
private const LICENSE_NUMBER_EXPRESSIONS = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |