Answer the question
In order to leave comments, you need to log in
How to prescribe Route in a new way in laravel?
installed according to standard laravel
composer create-project --prefer-dist laravel/laravel blog
latest version installed.
went to routes\web.php and saw this
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/home', '[email protected]'])->name('home');
work out. Route::get('/', [App\Http\Controllers\Admin\DashboardController::class, 'dashboard'])->name('admin.index');
Route::resource('/category', 'CategoryController');
Route::resource('/category', [App\Http\Controllers\Admin\CategoryController::class,])
Answer the question
In order to leave comments, you need to log in
found a solution
Route::resource('/category', '\App\Http\Controllers\Admin\CategoryController');
Read here - https://laravel.demiart.ru/target-class-does-not-e...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question