The Laravel Eloquent Status package by Rasmus Christoffer Nielsen is a package that helps you check the state and status of eloquent models without cluttering them. Learn more details about this package and how to use it in your own Laravel projects to define and check model statuses.Read more…
Laravel Soft Cascade is a package that makes it easy to perform soft cascade deletes and restores on related models using soft deleting. Learn more about the inspiration for making the laravel-soft-delete package and how to get started.Read more…
It’s not uncommon to have tens, if not hundreds of views in a Laravel application. Something that soon gets out of hand is the various references to routes. If for whatever reason we have to make a change to either the route alias or default query string values you’ll soon find yourself doing mass string replacements across your entire application which brings the risk of breakage within many files.
What can we do to possibly better handle this? There are a couple of differ... Read more…
Laravel Model events allow you to tap into various points in a model’s lifecycle, and can even prevent a save or delete from happening. The Laravel model events documentation outlines how you can hook into these events with event classes, and this article aims to build upon and fill in a few additional details on setting up events and listeners.Read more…
The Laravel Shareable Models package allows you to generate shareable links from your Eloquent models. Think dynamic routes which only exist for models that have been shared. The package author Kai Sassnowski described his use-case for the Shareable Models package as follows: My initial use case was giving certain non-admin user access to a certain …
Learn how to optimize your related model queries in Laravel with eager loading. We will set up some example relationships and then walk through how queries change with and without eager loading. I like to get my hands directly on code and experiment with things, and I hope to illustrate how eager loading works with some examples will further help you understand how to optimize your queries.Read more…
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Platform Engineer
- Intermediate Laravel Developer
Elevation Energy Group
- Sr. PHP Developer
- Full Stack Laravel Vue Developer
Remote / Bay Area
ZAM Apps, Inc.
- Senior Backend PHP Developer (Symfony) (Remote)
- Intermediate Laravel Developer (No Remote, Toronto Only)
Inkbox Ink Inc
ApproveMe // Document Signing