Laravel

Laravel - Change String Date Format using Accessors

Laravel - Change String Date Format using Accessors

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...

Jul 15, 2022 · Tushar
Force Eager Loading to Prevent N+1 Issues in Laravel

Force Eager Loading to Prevent N+1 Issues in Laravel

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...

Jul 02, 2022 · Tushar
Using Fake Helper in Laravel

Using Fake Helper in Laravel

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...

Jun 29, 2022 · Tushar
Laravel Sanctum: A Simple Guide to authenticate Mobile Apps

Laravel Sanctum: A Simple Guide to authenticate Mobile Apps

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...

Jun 15, 2022 · Tushar