joedixon / laravel-translation

Translation management for your Laravel application.
MIT License
698 stars 231 forks source link

Login seems not to work with Filament #249

Closed GuyVervillePerso closed 1 year ago

GuyVervillePerso commented 1 year ago

Describe the bug When choosing the 'auth' middleware, the package cannot read the actual Filament login path, which is /admin/login.

To Reproduce Steps to reproduce the behavior:

  1. Install Filament
  2. Install your package
  3. Go to /languages
  4. Error /login not defined

Expected behavior Should be redirected to /admin/login

Screenshots CleanShot 2022-09-15 at 22 00 22

Additional context Trying a redirect in /routes/web.php of /login to /admin/login works, but it doesn't go back then to /languages

joedixon commented 1 year ago

Hey @GuyVervilleSpiria - the auth middleware is provided by Laravel so you may whish to look at how to redirect users: https://laravel.com/docs/9.x/authentication#redirecting-unauthenticated-users