I’m having a problem with Routes.
On web.php, I set Routes but it doesn’t appear on Blade.php.
Technically it appears but I haven’t seen this format before.
I don’t know how to fix this issue.
Could somebody fix it ?
web.php
Route::group(['prefix' => 'seller', 'as' => 'seller.'], function () {
Route::get('/signIn', [AppHttpControllersAuthSellerLoginController::class, 'showLoginPage']);
Route::post('signIn', [AppHttpControllersAuthSellerLoginController::class, 'signIn'])->name('seller.signin');
}
2
Answers
You should use the Laravel recommended methods for prefix and name, so its easier. So your Route group should look like
And then it should popup in the blade as
seller.signin
Clear route cache and then try.