Answer the question
In order to leave comments, you need to log in
How to learn laravel 8 using the old lessons?
there are 100500 lessons on the Internet for laravel 7.4, but there are not enough lessons for 8 lessons yet, and there are a huge number of such changes that do not work in the new version, I literally “fall” at the first steps,
for example, I make a group of routes according to the lessons
Route::group(['prefix' => 'admin', 'namespace' => 'admin'], function () {
Route::get('/','[email protected]')->name('admin.index');
});
Target class [admin\MainController] does not exist.
Answer the question
In order to leave comments, you need to log in
Already in the seventh version, it was preferable to specify controllers as callable
use App\Http\Controllers\MainController;
Route::get('/', [MainController::class, 'index'])
->name('admin.index');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question