migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\HRM\Http\Requests\Candidate;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CandidateStoreRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'recruitment_id' => ['required', 'integer', 'exists:recruitments,id'],
|
||||
'first_name' => ['required', 'string', 'max:50'],
|
||||
'last_name' => ['nullable', 'string', 'max:50'],
|
||||
'email' => ['nullable', 'email', 'max:100'],
|
||||
'phone' => ['nullable', 'string', 'max:20'],
|
||||
'resume' => ['nullable', 'file', 'mimes:pdf,doc,docx', 'max:2048'],
|
||||
'cover_letter' => ['nullable', 'file', 'mimes:pdf,doc,docx', 'max:2048'],
|
||||
'status' => ['required', 'in:applied,shortlisted,interviewed,selected,rejected'],
|
||||
'notes' => ['nullable', 'string', 'max:1000'],
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\HRM\Http\Requests\Candidate;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CandidateUpdateRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'recruitment_id' => ['required', 'integer', 'exists:recruitments,id'],
|
||||
'first_name' => ['required', 'string', 'max:50'],
|
||||
'last_name' => ['nullable', 'string', 'max:50'],
|
||||
'email' => ['nullable', 'email', 'max:100'],
|
||||
'phone' => ['nullable', 'string', 'max:20'],
|
||||
'resume' => ['nullable', 'file', 'mimes:pdf,doc,docx', 'max:2048'],
|
||||
'cover_letter' => ['nullable', 'file', 'mimes:pdf,doc,docx', 'max:2048'],
|
||||
'status' => ['required', 'in:applied,shortlisted,interviewed,selected,rejected'],
|
||||
'notes' => ['nullable', 'string', 'max:1000'],
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user