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
pmkevinrudd14mo ago
Think overriding the LoginResponse class works.
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
$this->app->bind(LoginResponseContract::class, LoginResponse::class);
codeartisan
codeartisan13mo ago
@pmkevinrudd where do i find that class
Dennis Koch
Dennis Koch13mo ago
You need to create it.
codeartisan
codeartisan13mo ago
kindly explain properly the all process
pmkevinrudd
pmkevinruddOP13mo 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
codeartisan13mo ago
thank you
Want results from more Discord servers?
Add your server