Have you ever used an external API and specified its version? For example, have you noticed the "/v1/" in the URL of "https://api.openai.com/v1/models"? In this tutorial, I will explain how to use similar versioning for our own APIs we create with Laravel.
Experienced developers often advise avoiding static methods in PHP classes. In this tutorial, let me give you a few practical Laravel/PHP examples behind this advice. When are static methods ok, and when it's best to avoid them?
With the release of Laravel 10, you might have noticed that the $dates property on your Model stopped working properly. It has been deprecated in favor of $casts. Let me show you what to do.
Exporting data to PDF is a very common feature. This tutorial will show how to do it in the Filament admin panel: we will export a single record to PDF using Blade View and barryvdh/laravel-dompdf package.
If you create foreign keys in your migrations, there may be a situation that the table is created successfully, but the foreign key fails. Then your migration is "half successful", and if you re-run it after the fix, it will say "Table already exists". What to do?
In this tutorial, we will create a dashboard that will automatically refresh every 5 seconds to show the next piece of data, with an example of sports leagues tables. We will use Livewire feature polling for this.
You've performed some action in Controller. Now you want to redirect the user to another page and show them the success/error message? Here are the options.
If you have a Filament form with a belongsToMany relationship, what if you want to limit the number of options to be selected? Let me show you a few ways to implement it.