mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-15 02:07:56 -04:00
38 lines
783 B
PHP
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;
|
|
}
|
|
}
|