filament: Route [filament.app.auth.logout] not defined when ->path('')

Package

filament/filament

Package Version

v3.0.40

Laravel Version

v10.22

Livewire Version

v3.0.2

PHP Version

PHP 8.2

Problem description

When following the instruction to remove the path ‘admin’ to make the page available at ‘’ it seems the route for logout is not defined.

I have installed Laravel with --teams

CleanShot 2023-09-08 at 16 54 50

Expected behavior

That the route was accessible

Steps to reproduce

  • Checkout the project
  • Update your .env for database credentials
  • Run php artisan migrate:fresh --seed
  • Run npm run dev
  • Run your php server (Herd in my case)
  • Open a browser

Or

In AdmiPanelProvider

Upddate:

return $panel
            ->default()
            ->id('app')
            **->path('')**

Reproduction repository

https://github.com/django23/FilamentRouteMissing

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

By default, the Filament path is /admin

  • Filament registers /admin/login
  • Filament registers /admin/logout

You change the Filament path to /

  • Filament now registers /login instead
  • Filament now registers /logout instead

You install Fortify

  • Fortify also registers /login
  • Fortify also registers /logout

How is this a bug in Filament? Laravel will not register multiple routes with the same path. The error Route [filament.app.auth.login] not defined. is because Laravel does not register Filament’s route.

Even if you don’t want to remove Fortify, you should disable Fortify’s login and logout routes, so they don’t overwrite Filament’s. You shouldn’t have a problem after that.

Also, there is no need for the passive aggressive side comments about our updates or stability. Do you think that’s what maintainers want to read when we’re helping you in our spare time?

I had the same problem and managed to solve it. Filament running at the root.

Laravel 11, Filament, Fortify.

I basically went to config/fortify.php and in prefix I added anything.

'prefix' => 'fort',