EloquentFilter Package Review: Process GET Query Without IF Statements
Quick review of a package called EloquentFilter - it will help you move complicated search logic from controller to separate filter classes, to keep your code cleaner.
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
Quick review of a package called EloquentFilter - it will help you move complicated search logic from controller to separate filter classes, to keep your code cleaner.
If you have a form separated into a few tabs with jQuery UI Tabs, then default Laravel validation will redirect you back to the first tab, even if the error was on the third tab. How to override it and set the correct tab proactively?
When building CRUD-like projects, sometimes you want some items be accessible only with their parent, for example in countries-cities relationships, you don't want to list all the cities in the world, but only by country, like /countries/123/cities, where 123 is country_id. This article will show you how to do it, using Route::resource() and usual CRUD controllers.
A new 2-minute video showing probably the quickest way to create a new user in Laravel users table.
Multilanguage projects are quite easy to configure in Laravel, but if you want to have locale as part of URL, like /en/about, then you will have trouble with Auth::routes(), they won't work by default like /en/register. This article will show you what to do.
In your CRUD classes, it's good practice to use FormRequest classes for validation. Usually people create one for store() method and one for update() - something like StoreUserRequest and UpdateUserRequest. But maybe it's possible to combine them into one?
Eloquent has one less-known function called withCount(): it helps to get the amount of related records inside of the main object. It also works with two layers deep, inside of hasManyThrough relations. Let's take a look.
Another quick package video review - this time we're having Laravel Breadcrumbs, which helps to show the path with links to the record you're currently showing.