32 lines
751 B
PHP
32 lines
751 B
PHP
<?php
|
|
|
|
namespace Modules\Appointment\app\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CreateAppointmentRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'team_member_id' => 'required|integer',
|
|
'full_name' => 'required|string|max:150',
|
|
'email' => 'required|email',
|
|
'contact_no' => 'required|string',
|
|
'subject' => 'required|string|max:500',
|
|
'feedback' => 'required|string',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|