diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 1e0f159..6f10384 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -740,7 +740,7 @@ class EmployerController extends Controller // Рассылка сообщений public function send_all_messages() { $id = Auth()->user()->id; - $sending = Employer::query()->where('id', '=', "$id")->first(); + $sending = Employer::query()->where('user_id', '=', "$id")->first(); if ($sending->sending_is) return view('employers.send_all'); else