Blog Tutorials

29th of November 2016
Nested resources in Backpack CRUD

Sometimes you'll have one resource that depends on another one. For example, you might have: a Post model; a User model; The admins could see all posts, of course. But if you might want to see only one user's posts. Sometimes, you don't want to be using a filter. You just want to go from a User to that User's posts. In this case, you can create a nested resource. Basically you'd be creating a th...

Read More
16th of October 2019
How to Add Impersonate Functionality to Your Backpack v4 Admin Panel

Sometimes it's useful for the admin to see everything from the user's perspective. To see exactly what he sees. With an admin panel like Backpack, it's not too difficult to add this functionality. Assumptions: you're using PermissionManager (or have a custom UserCrudController); you have a way to differentiate between admins and normal users; you're running Backpack v4 on Laravel 5.8 or Laravel 6...

Read More
25th of January 2020
How to Submit a Non-trivial PR to a Laravel Package

If you want to contribute to a Laravel package with a PR, sometimes the Github interface is enough. You change one or two files there and submit your small PR. But more often than not, when your PR is more than a quick fix, you'll need to do this right. You'll need to test your work, before you submit the PR. To do that, you'll want to install the package on your computer, make the changes, test y...

Read More