add all controllers logic
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Staff;
|
||||
|
||||
use App\Http\Requests\ApiFormRequest;
|
||||
|
||||
class StaffUpdateRequest extends ApiFormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'firstname' => ['nullable', 'string', 'max:100'],
|
||||
'lastname' => ['nullable', 'string', 'max:100'],
|
||||
'email' => ['nullable', 'email', 'max:150'],
|
||||
'phone' => ['nullable', 'string', 'max:20'],
|
||||
'role_name' => ['nullable', 'string', 'max:100'],
|
||||
'school_year' => ['nullable', 'string', 'max:20'],
|
||||
'status' => ['nullable', 'string', 'max:40'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user