When validating forms or API requests, sometimes the rule for one field depends on values from other fields. In this tutorial, I will show you 4 different Laravel syntax examples to achieve it.
Have you ever encountered an issue where it says: GET Method is not supported for this route? This is mainly caused by using incorrect methods when submitting a form or inaccurate redirects. Let's take a look at examples and how to fix them.
In this tutorial, we will show how to add permissions to the Laravel application with Vue.js SPA architecture. For the example, we will take a basic CRUD of posts, create two roles (admin and editor), and the editor role will not be able to delete the posts.
To set the global Laravel language (locale), you need to use the `app()->setLocale()` method. But the question is: where to put this method if you want to set the locale based on a DB field like `users.language`?
Sometimes, when starting a new Laravel project, you can't use the latest version. For example, when the PHP version on your server is lower than required by Laravel. What to do?
Do you store Laravel global settings in the config files? Would you want them to be editable without touching the code? Let's build a Settings page where you can change things quickly.
Spatie Laravel MediaLibrary is a very popular package to store and associate images with models. But it has so many less-known features under the hood! Let's explore some of them.
We have all seen cases where our performance was slow due to a random N+1 query. How to detect them in a LIVE application, when it's already out? And, even better, how to automatically log such cases in a tool like Bugsnag? Let me show you.
This tutorial is a Part 2 follow-up to the "Livewire Sidebar Filters for E-Shop Products: Step-by-Step" article. We decided to improve that Sidebar Filter component with new features using Alpine.js.