migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\HRM\Http\Requests\Interview;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class InterviewStoreRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'candidate_id' => ['required', 'exists:candidates,id'],
|
||||
'department_id' => ['nullable', 'exists:departments,id'],
|
||||
'interview_date' => ['required'],
|
||||
'interviewer_name' => ['nullable', 'string', 'max:100'],
|
||||
'feedback' => ['nullable', 'string', 'max:2000'],
|
||||
'status' => ['nullable', 'in:pending,shortlisted,rejected,hired'],
|
||||
'rating' => ['nullable'],
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\HRM\Http\Requests\Interview;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class InterviewUpdateRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'candidate_id' => ['required', 'exists:candidates,id'],
|
||||
'department_id' => ['nullable', 'exists:departments,id'],
|
||||
'interview_date' => ['required'],
|
||||
'interviewer_name' => ['nullable', 'string', 'max:100'],
|
||||
'feedback' => ['nullable', 'string', 'max:2000'],
|
||||
'status' => ['nullable', 'in:pending,shortlisted,rejected,hired'],
|
||||
'rating' => ['nullable'],
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user