skip to Main Content

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');
}

enter image description here

2

Answers


  1. You should use the Laravel recommended methods for prefix and name, so its easier. So your Route group should look like

    Route::prefix('/seller')->name('seller.')->group(function () {
        Route::post('signIn', [AppHttpControllersAuthSellerLoginController::class, 'signIn'])->name('signin');
    }
    

    And then it should popup in the blade as seller.signin

    Login or Signup to reply.
  2. Clear route cache and then try.

    php artisan route:clear
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search