Issue
First Route
Route::get('/', [HomeController::class, 'method'])->name('home.index');
Second Route
Route::get('/{slug}', [Controller::class, 'method'])->name('view');
Third Route
Route::get('/dashboard', [HomeController::class, 'method'])->name('home');
how to call route with out any error??
Solution
So you have to order something like this,
Route::get('/', [HomeController::class, 'method'])->name('home.index');
Route::get('/dashboard', [HomeController::class, 'method'])->name('home');
Route::get('/{slug}', [Controller::class, 'method'])->name('view');
Let me know the results.
Answered By - Vivek Pawar
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.