Skip to main content

All Tutorials

In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.

Tutorial Free

Filament: Export Record to PDF - Two Ways

Exporting data to PDF is a very common feature. This tutorial will show how to do it in the Filament admin panel: we will export a single record to PDF using Blade View and barryvdh/laravel-dompdf package.

Tutorial Free

Laravel Migrations: "Table already exists" After Foreign Key Failed

If you create foreign keys in your migrations, there may be a situation that the table is created successfully, but the foreign key fails. Then your migration is "half successful", and if you re-run it after the fix, it will say "Table already exists". What to do?

Tutorial Free

Laravel Redirect to Route with (Error) Messages

You've performed some action in Controller. Now you want to redirect the user to another page and show them the success/error message? Here are the options.

Tutorial Free

Laravel Users with Multiple Roles: Switching Between Roles

Working with applications that have multiple roles can require you to have a Role Switcher to allow your user to act in a different role. For example, a user can be a doctor but also a patient. In this practical example, we'll add role-switching to our navigation bar to allow this.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.