How to fix call of a modal window?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
19 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 | 19 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,187 answers
0 comments
40,796 users