initial commit

This commit is contained in:
2026-06-23 13:28:38 +07:00
commit 966ed115b2
590 changed files with 111412 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class DoctorRequest extends BaseFormRequest
{
/**
* Get the validation rules that apply to the post request.
*
* @return array
*/
public function store()
{
return [
'fullname' => 'required',
'address' => 'required',
'phone' => 'required',
'emergency_phone' => 'required',
'gender' => 'required',
'age' => 'required',
// user
'email' => 'required|email',
'password' => 'required',
];
}
/**
* Get the validation rules that apply to the put/patch request.
*
* @return array
*/
public function update()
{
return [
'role' => [
Rule::in(['admin','patient','doctor'])
],
];
}
/**
* Get the validation rules that apply to the delete request.
*
* @return array
*/
public function destroy()
{
return [
];
}
}