migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Modules\HRM\Http\Requests\Recruitment;
use Illuminate\Foundation\Http\FormRequest;
class RecruitmentStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'title' => ['required', 'string', 'max:150'],
'department_id' => ['nullable', 'integer', 'exists:departments,id'],
'designation_id' => ['nullable', 'integer', 'exists:designations,id'],
'vacancy_count' => ['required', 'integer', 'min:1'],
'description' => ['nullable', 'string', 'max:1000'],
'requirements' => ['nullable', 'string', 'max:1000'],
'start_date' => ['required', 'date'],
'end_date' => ['nullable', 'date', 'after_or_equal:start_date'],
'job_type' => ['required', 'in:full_time,part_time,internship,contract'],
'recruiter_id' => ['nullable', 'integer', 'exists:users,id'],
'status' => ['required', 'in:open,closed'],
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace Modules\HRM\Http\Requests\Recruitment;
use Illuminate\Foundation\Http\FormRequest;
class RecruitmentUpdateRequest extends FormRequest
{
public function rules(): array
{
return [
'title' => ['required', 'string', 'max:150'],
'department_id' => ['nullable', 'integer', 'exists:departments,id'],
'designation_id' => ['nullable', 'integer', 'exists:designations,id'],
'vacancy_count' => ['required', 'integer', 'min:1'],
'description' => ['nullable', 'string', 'max:1000'],
'requirements' => ['nullable', 'string', 'max:1000'],
'start_date' => ['required', 'date'],
'end_date' => ['nullable', 'date', 'after_or_equal:start_date'],
'job_type' => ['required', 'in:full_time,part_time,internship,contract'],
'recruiter_id' => ['nullable', 'integer', 'exists:users,id'],
'status' => ['required', 'in:open,closed'],
];
}
public function authorize(): bool
{
return true;
}
}