Files
wticreatorstudio/Modules/Customer/Http/Requests/UpdateProfileRequest.php
T
Leonard Biano 0efe4f002c Customer Module Update
Company profile with additional contacts and customer notes
2024-07-04 19:20:44 +08:00

37 lines
777 B
PHP

<?php
namespace Modules\Customer\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateProfileRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'avatar' => 'sometimes|nullable|image',
'first_name' => 'required|max:255',
'last_name' => 'nullable|max:255',
'phone' => 'required|max:255',
'date_of_birth' => 'nullable|date',
'description' => 'sometimes|nullable'
];
}
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
}