This blog post follows up on last week's overview of the new Database and Eloquent features in Laravel 8 since the original release in September 2020. I already covered Collections, and next week is all about Jobs and Queues. Enjoy! I got most code examples and explanations from the PRs and official...
In this series, I show you new features and improvements to the Laravel framework since the original release of version 8. Last week, I wrote about the Collection class. This week is about the Database and Eloquent features in Laravel 8. The team added so many great improvements to the weekly versio...
I'm thrilled to announce the release of a new package. It's a DataTables-like package for Inertia, Laravel, and Vue that comes with Tailwind-styled components and great features! You can search through your data, both globally and per attribute. There's support for pagination, sorting, column toggli...
Last week I blogged about a new package that I wrote. It builds upon the magic of Laravel Eloquent, and it quickly gained attention. As I worked on a minor release with some enhancements and shortcuts, I got an idea for a new feature. It's closely related to last week's package, but I decided to wra...
In the Laravel framework, you've undoubtedly come across the Eloquent ORM. It makes working with your database a breeze as its query builder is both simple and incredibly powerful. It also has this concept of scopes, which you can apply globally to a model, or locally throughout your app. An example...
There are many ways to add search functionality to your Laravel project. You can use the Query Builder, use the official Scout package to integrate with Algolia or use a third-party package like Spatie's laravel-searchable. Today we're introducing a new package to perform cross model, in-database se...
Eloquent provides an easy way to add a relationship count condition to a query. Say you have a User model and a Role model which are related to each other using a many-to-many relationship. Using Eloquent it is very easy to get all Users that have one or more Roles or doesn't have Roles at all: This...