Files
wticreatorstudio/Modules/Subscription/Http/Requests/RestrictedLocationFormRequest.php
T
2024-02-12 22:54:20 -05:00

38 lines
783 B
PHP

<?php
namespace Modules\Subscription\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class RestrictedLocationFormRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'country' => 'required',
"status" => "required",
];
}
public function messages()
{
return [
'country.required' => 'The country name is required',
];
}
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
}