Facades in Laravel: Do You Need To Use Them? [OPINION]
Have you ever used `Auth::user()` in Laravel? So yeah, that `Auth` is a Facade. Question: do you actually need to know how they work, and would you need to create your own facades?
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
Have you ever used `Auth::user()` in Laravel? So yeah, that `Auth` is a Facade. Question: do you actually need to know how they work, and would you need to create your own facades?
In this tutorial, we will explore how to use Laravel, Vue, and Laravel Sanctum together to build an API authentication, in two ways: in two-in-one Laravel + Vue SPA, or as separate Vue + API projects.
Sometimes when using `composer install` or `composer update` commands you might install packages that don't fulfill system requirements, something like "your php version (8.1.2) does not satisfy that requirement".
In every Laravel project, you will have two files, `composer.json` and `composer.lock`. What is the difference between them?
How should you name your Controllers: singular or plural? In this tutorial, we will cover a dozen tips for naming different things in Laravel and PHP, including Models, Controllers, Blade files, Migrations, and more.
For fixing code styling mistakes, there's a great tool called Laravel Pint. In this article, I will list one of the most typical fixes it makes, with before/after examples.
If you want to add an index to the column in Laravel migrations and you're not sure if that index already exists, how to make sure that no error happens when running migrations?
If you launch an API request from a client like Postman, you may see an error in HTML and not JSON. How to prevent it?
When creating an application, you will need some restrictions for your users. Laravel offers a variety of ways how to implement this. In this tutorial, I will show you four examples.
To prevent bots from registering into your web app you can add a Captcha. In this tutorial, I will show you how to add Google reCAPTCHA to the register page in Laravel Breeze and Jetstream.