From df4edc01dc32bd2640a02590eba712db4abfc122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Tue, 26 Mar 2024 13:54:33 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0?= =?UTF-8?q?=B8=D0=B5=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 4 +++- app/Http/Requests/RequestPosition.php | 2 +- resources/views/employers/add_vacancy.blade.php | 8 +++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index af7ca84..cbe362c 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -22,6 +22,7 @@ use App\Models\Job_title; use App\Models\Like_vacancy; use App\Models\Like_worker; use App\Models\Message; +use App\Models\Positions; use App\Models\Worker; use Carbon\Carbon; use Illuminate\Auth\Events\Registered; @@ -115,12 +116,13 @@ class EmployerController extends Controller $id = Auth()->user()->id; $jobs = Job_title::query()->OrderBy('name')->get(); $categories = Category::query()->get(); + $Positions = Positions::query()->get(); $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> WhereHas('users', function (Builder $query) use ($id) {$query->Where('id', $id); })->get(); - return view('employers.add_vacancy', compact('Employer', 'jobs' , 'categories')); + return view('employers.add_vacancy', compact('Employer', 'jobs' , 'categories', 'Positions')); } // Сохранение вакансии diff --git a/app/Http/Requests/RequestPosition.php b/app/Http/Requests/RequestPosition.php index 43ecf72..c93ad77 100644 --- a/app/Http/Requests/RequestPosition.php +++ b/app/Http/Requests/RequestPosition.php @@ -17,7 +17,7 @@ class RequestPosition extends FormRequest 'name' => [ 'required', 'string', - 'min:3', + 'min:1', 'max:255', ], 'sort' => [ diff --git a/resources/views/employers/add_vacancy.blade.php b/resources/views/employers/add_vacancy.blade.php index bddb442..21df358 100644 --- a/resources/views/employers/add_vacancy.blade.php +++ b/resources/views/employers/add_vacancy.blade.php @@ -99,11 +99,9 @@
@error('postion_ship') -- 1.7.10.4