It means there is something wrong in your route files, I suspect you get the same error if you try to run php artisan route:list
Route::get('/', '');
Auth::routes();
Route::post('follow/{user}', [App\Http\Controllers\FollowsController::class, 'store']);
Route::get('/', [App\Http\Controllers\PostsController::class, 'index']); Route::get('/p/create', [App\Http\Controllers\PostsController::class, 'create']); Route::post('/p', [App\Http\Controllers\PostsController::class, 'store']); Route::get('/p/{post}', [App\Http\Controllers\PostsController::class, 'show']);
Route::get('/profile/{user}', [App\Http\Controllers\ProfilesController::class, 'index'])->name('profile.show'); Route::get('/profile/{user}/edit', [App\Http\Controllers\ProfilesController::class, 'edit'])->name('profile.edit'); Route::patch('/profile/{user}', [App\Http\Controllers\ProfilesController::class, 'update'])->name('profile.update');
All the routes that I have. I am not competent enough to see what is wrong with the routes.
The first route is invalid, if you remove it you will be fine.
Route::get('/', '');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community