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 yourFortifyServiceProviderand now you have add this below code inboot()method
Fortify::ignoreRoutes();

now its look like

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

        <em>// Below is the default configuration that comes with this provider</em>
        <em>// If you changed it, you can keep your changes</em>
        Fortify::createUsersUsing(CreateNewUser::class);
        Fortify::updateUserProfileInformationUsing(UpdateUserProfileInformation::class);
        Fortify::updateUserPasswordsUsing(UpdateUserPassword::class);
        Fortify::resetUserPasswordsUsing(ResetUserPassword::class);
    }
  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