Answer the question
In order to leave comments, you need to log in
Why does DI Laravel not work in exactly one controller?
Good afternoon colleagues!
There were difficulties with laravel, DI works fine in it and I use it with pleasure, but creating another resource controller for the admin panel, I cannot write like this:
/**
* Display the specified resource.
*
* @param Keywords $keywords
* @return \Illuminate\Http\Response
*/
public function show(Keywords $keywords)
{
dd($keywords);
}
Route::resource('/keywords', 'KeywordsController');
Route::resource('/category', 'CategoryController');
Answer the question
In order to leave comments, you need to log in
Have you read - https://laravel.com/docs/5.5/routing#route-model-b... ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question