Laravel Jetstream: Redirect After Login
If you use Laravel Jetstream, you may want to customize where login form redirects to, after submission. For example, what if you want to redirect to different dashboards or URLs, depending on user's role?
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
If you use Laravel Jetstream, you may want to customize where login form redirects to, after submission. For example, what if you want to redirect to different dashboards or URLs, depending on user's role?
In Filament, when using Select with relationships, you may want to customize the Label of the dropdown options.
If you have a Filament Select with a relationship and want to list only the options that haven't been used yet, you can do it by adding a `modifyQueryUsing` parameter. In this tutorial, we will also ensure that it works correctly for the Edit operation.
Sometimes, after registration, you want to perform some operation with the new User object, like assigning a default Role.
Imagine you have a Filament form with Select and Input fields, where that second Input should be visible only if a particular Select item is chosen. In addition, the condition is defined in a DB column from that Select relationship table. How to do it?
In Filament forms, you may want to make specific fields in your forms visible or hidden, depending on the user's role. Here's how to do it.
If you have a many-to-many relationship and want to fill the pivot table values automatically with Filament form, it's better to do it on Eloquent level, instead of Filament. Let me show you how.
If you use Eloquent Accessor in the Filament table, how do you make it searchable? Let me show you an example.
If you need to show a Table column that is not directly from the DB table but calculated from other columns, the best way is to use Eloquent Accessor.
Sometimes you may want to add a simple link to your main sidebar, like "Terms and Conditions" or similar. It's easy to do in Filament.