Here we will see the maintenance mode and maintenance page customization in Laravel in details.
We often require maintenance to be done for our project. Laravel provides easy commands for the sam...
In this article we will take a look on how we can build SQL queries with multiple 'AND' and 'OR' where statements using Eloquent ORM.
Let first start with the simple Where Clauses
You may use the...
Often in your Laravel code you would want to validate if the request has a particular input parameter and also if the parameter has a value in it.
Laravel has provided a simple single method on the...
In Laravel if you are storing date in the mysql database and on the frontend you want to change the display format, you can do so easily via Model accessors and mutators.
Accessors, mutators, and...
The manifest.json file is only available till the command npm run dev is running and gets deleted after that. To have this file in your filesystem you need to run the build command
Fixed by running...
Introduction
When working with eloquent to fetch models-related data from the database, and then doing any type of processing on the model’s relations, it’s important that we use eager loading. Eager...
Laravel version 9.18 has introduced a fake helper, which can be used to generate fake data in your application. This can be used while UI prototyping or generating test data for testing and generating...
Edit the Nginx configuration file for the site (not the server), replace the location ~ \.php$ block with following
location ~ \.php$ {
try_files $uri /index.php?$args;
f...
TailwindCSS is a popular utility first CSS framework. In this article, we will go over how to install TailwindCSS on Laravel which is a PHP Framework.
1. Create a Laravel Project and Dependencies Ins...
What is Laravel Sanctum?
Laravel Sanctum provides a simple way for authenticating Single Page Applications(SPAs), Mobile Applications, and simple token-based APIs. It allows users to create multiple...