How to Quickly Create Laravel User with Tinker
A new 2-minute video showing probably the quickest way to create a new user in Laravel users table.
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
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.
I've recently found a simple package that helps to transform any URL into embeddable HTML, the best examples are Youtube and Vimeo videos.
JSON fields are gaining more popularity since they became officially supported in MySQL 5.7.8. Even the popular Spatie Laravel Medialibrary package use them, so why shouldn't we? This tutorial will show you an example.
Short video with an example, how findOrFail() and similar methods may lead to unexpected result for the end user.
If you work with project or blog where records require so-called slug (posts, pages etc.), it's convenient to generate slug immediately after title has been typed in. This article will show you how to do it in Laravel, with AJAX and with a help of one Laravel package.