How to fix call of a modal window?

0 like 0 dislike
9 views
There is such code. He was supposed to call the modal window with the data

public function getVebinar(Subscribe $subs, $id){ $user = Auth::user(); $this->data['subsBuh'] = $subs->whereIn('id', [5,6,7,8])->get(); $this->data['subsList'] = [ the'' 'Accountant' => $this->data['subsBuh']->pluck('NamePrice', 'id')->toArray(), ]; return view('ajaxview.modals.vebinar', $this->data)->with('user', $user); }


But something goes wrong and throws me an error: Type error: Argument 1 passed to App\\Http\\Controllers\\AjaxController::getVebinar() must be an instance of App\\Models\\Subs\\Subscribe, string given, called in /home/dekoraci/test.dekoracio.by/app/Http/Controllers/AjaxController.php on line 25

Tell me, what is it you want from me?
by | 9 views

1 Answer

0 like 0 dislike
He told you and said the First argument in the method call getVebinar() class AjaxController must be an instance of App\\Models\\Subs\\Subscribe. Check how cause getVebinar in the class AjaxController, namely, that in the first argument
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 9, 2019 by mykolaim
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,630 users