Category: PHP

  • How to install Laravel + Livewire + Filament on production

    I will setup a domain on a Linux Debian production server using Nginx and PHP 8.1 First the nginx config after generated the certbot https certificates: Install Laravel As I also have sites using PHP 7 in the same server, I use “composer8” and “artisan8” as aliases of “php8.1 composer” and “php8.1 artisan”. Now add…

  • Laravel testing: models without database connection

    I like to have unit tests that work without database connection so they can run on any situation and they can be run for example from local git hooks with no problem. I use factories for this tests and the way to do it have changed a little for last Laravel versions (8, 9…) and…

  • Laravel Books

    Laravel is by far the most popular PHP framework and is already more than 10 years old. Because of this there are already many good books available to help us learn how to use this framework or to deepen our knowledge. Here I will try to show you the best possible list of all the…