Changing login redirect url

Instead of the dashboard being where you land after login, where would you change to land on a resource?
Solution:
Think overriding the LoginResponse class works.
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
...
Jump to solution
6 Replies
Solution
pmkevinrudd
pmkevinrudd17mo ago
Think overriding the LoginResponse class works.
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
codeartisan
codeartisan16mo ago
@pmkevinrudd where do i find that class
Dennis Koch
Dennis Koch16mo ago
You need to create it.
codeartisan
codeartisan16mo ago
kindly explain properly the all process
pmkevinrudd
pmkevinruddOP16mo ago
https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/Http/Responses/Auth/LoginResponse.php copy this to your own code, change the URL inside intended(), add the code I posted above to the boot method of your appserviceprovider
GitHub
filament/packages/panels/src/Http/Responses/Auth/LoginResponse.php ...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
codeartisan
codeartisan16mo ago
thank you

Did you find this page helpful?