In this article I explain how to optimize circular relationships in Laravel using the Model::setRelation() method.
Apply dynamic filters to Laravel's Eloquent models with the Filterable package by Jerome Thayananthajothy.
Learn how to test expected exceptions, fake Laravel's exception handling, and use Laravel's Exceptions facade to assert exceptions in HTTP tests.
This week, the Laravel team released v11.2, which includes a fluent() support helper, a context() helper, improved handling of a missing database during migrate commands, and more.
Laravel provides many excellent helper functions that are convenient for doing things like working with arrays, file paths, strings, and routes, among other things like the beloved dd() function. You can also define your own set of helper functions for your Laravel applications and PHP packages, by using Composer to import them automatically.
With the introduction of Laravel 11 and the new first party websocket package, Reverb, we're diving in how to get it set up, and how to deploy it to your server.
[Tip#74] Laravel 11 shifts the default middleware into the framework itself and exposes configuration through the bootstrap/app.php class.
Diving into the difference between Laravel's facades and class aliases.
The Cloudflare Cache package for Laravel provides cacheable routes for Cloudflare, allowing you to serve millions of requests efficiently.
Let's take a look at building a project in GO and how it works in Gitlab CI.
The Secure Socket shell allows connecting to a remote host, managing files in the server, and much more! Learn more about what is SSH.
SSH is a very powerful and flexible tool, but as practice shows, not everyone understands how it works and uses it correctly. The word Secure is part of the abbreviation...
The Ollama Laravel package provides seamless integration with the Ollama API, giving you access to large language models locally in a Laravel project.
The Laravel Phone package makes working with phone numbers in PHP and Laravel a breeze, offering validation rules, attribute casting, utility helpers, and more.
Say you're working on your code in Git and something didn't go as planned. So
now you need to revert your last commit. How do you do it? Let's find out!
There are two possible ways to undo your last commit. We'll look at both of them
in this article.
The revert command
The revert command will create a commit that reverts the changes of the commit
being targeted. You can use it to revert the last commit like this:
git revert
Laravel is a pretty nice PHP framework and provides a lot of useful features. One of them is Resource class. Very often we get some data from an ex. database and send it to our app client. Sending …
Understand the Laravel Container Concept with Real Life Example and how it's work under the hood.
Learn how Spatie's temporary-files PHP package makes working with temporary file paths a breeze in Laravel and other PHP projects.
Laravel environment: docker, devcontainer and VS Code debug
Laravel Wallet is designed for reliable and flexible payable transactions and handles the complex part of storing transactions in the database for precise calculations.