File: D:/HostingSpaces/blijegasten/blijegasten.be/app/Komma/Globalization/Requests/CountryIso3Request.php
<?php
namespace App\Komma\Globalization\Requests;
use App\Komma\Globalization\Rules\ValidCountryIso3;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
class CountryIso3Request extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return request()->ajax();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'countryIso3' => [
'required',
new ValidCountryIso3(),
]
];
}
}