File manager - Edit - /var/www/html/homologBancodetalentos/app/Http/Services/TalentBank/Candidate/EducationService.php
Back
<?php namespace App\Http\Services\TalentBank\Candidate; use App\Http\Services\BaseService; use App\Models\TalentBank\Candidate; use App\Models\TalentBank\Candidate\Education; use Illuminate\Database\Eloquent\Collection; use Illuminate\Http\Request; class EducationService extends BaseService { protected $model = Education::class; public function index(Request $request): Collection { return Education::query() ->where('candidate_id', $request->talentBankUser->id) ->get(); } public function store(Request $request, Candidate $candidate): Education { $newEducation = $candidate->educations()->create($request->all()); $newEducation->refresh(); return $newEducation; } public function show(Education $education): Education { return $education; } public function update(array $data, Education $education): Education { $education->fill($data); $education->save(); return $education; } public function destroy(Education $education): bool { $education->delete(); return true; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings