Sindbad~EG File Manager
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class MeasurementPointRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules()
{
return [
'name' => ['required', 'max:191']
];
}
/**
* Get the error messages for the defined validation rules.
*
* @return array
*/
public function messages()
{
return [
'name.required' => translate('Measurement Point name is required'),
'name.max' => translate('Max 191 characters for Measurement Point name'),
];
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists