In this article, I will show you how to shorten Controllers by using Service classes, and different ways to initialize…
PHP
In Laravel, there’s a convenient way to transform date/time DB fields to Carbon objects automatically. In fact, there are two…
Eloquent has one less-known function called withCount(): it helps to get the amount of related records inside of the main…
Quite often I get a question from junior developers like “how to get better at Laravel”, and there’s so much…
While expanding my team and working with potential junior developers, I’ve come up with a few tasks to test their…
There are a lot of courses and articles about coding but much less about **putting it in production**. With a…
In this quick tutorial for Filament I will show you how to show calculate the “age” value from the “birth_date”…
This will be a step-by-step tutorial how to implement “Login with Google” in your Laravel projects. We will take Laravel…
In Laravel and Eloquent, to avoid N+1 Query problems or to find slow SQL queries, you may use automatic tools.…
Laravel has a few starter kits like Breeze and Jetstream, but they don’t have roles/permissions functionality. This time, let’s talk…
By default, the Filament login form contains email and password fields. In this short tutorial, let’s see how to log…
If you have a Middleware, where you should use it: in the Routes file or in the Controller? Here are…
To set the global Laravel language (locale), you need to use the `app()->setLocale()` method. But the question is: where to…
When creating an application, you will need some restrictions for your users. Laravel offers a variety of ways how to…
Working with a calendar can be quite common, so in this tutorial, we will use the popular [FullCalendar](https://fullcalendar.io/) library in…
Many of us are used to write conditional Eloquent queries with “if-else”. What if I told you there’s a (much)…
If you are a junior Laravel developer and want to practice your skills, you can create a demo project, put…
API-based projects are more and more popular, and they are pretty easy to create in Laravel. But one topic is…
This is a demo Laravel project aimed at junior developers to practice their skills. This article contains both the task…
Quick tip of the day. Default Laravel Auth comes with User table and model, but without logging capability, so we…