Published on

Laravel Login url Change via Fortify

  • avatar
    Md Rathik
laravel fortify login url change

Hi Fokls, This is common asking question when you need to change the laravl login url in fortify. Somedays ago i tried many ways to change the fortify login url. So after i got this method below and its tested. Its Working efficiently, you can check this example.

  1. Firstly go to your FortifyServiceProvider and now you have add this below code in boot() method

now its look like

  public function boot()
        Fortify::ignoreRoutes(); // <<< ADDED THIS LINE

        // Below is the default configuration that comes with this provider
        // If you changed it, you can keep your changes
  1. Then copy Fortify's routes definitions to your ./routes/web.php file.

  2. Then go to web.php, need to keep the controllers imports file and you can make changes accordingly.

Thanks For read please comments if its not solved yet

Read More for different Category