Reading or parsing CSV File in Laravel

In this example, we will create a CSV file, read that CSV file from our controller and return CSV data as a JSON response in Laravel Application. What is CSV? The CSV stands for Comma Separated Values. It’s a plain text file that we can use to store information on a hard drive. In a

Learn More

Laravel Automatic Daily Database Backup Example

In software development, we need to be ready to handle server crashes or data being mistakenly and this can cause a lot of trouble for the business. So developing a system that takes database backup regularly is considered the best practice. Database backups are essential for protection against data loss that can disrupt operations and

Learn More

Database Backup with Spatie Backup in Laravel

As we already know database backup is an essential part of the software development process. But sometimes it will become messy or time-consuming to manually take database backups check which database is older and delete older databases. You will feel great after knowing that the Spatie Laravel-Backup library can perform most of the database backup

Learn More

Everything You Need to Know About Laravel Caching

The cache is used to store data in a temporary or permanent environment for better performance and user experience. Caching is essential for achieving high performance and scalability. Setting up proper caching can reduce the load on the server and is helpful for minimal page response time. Laravel has in-built caching functionality with multiple options.

Learn More

Creating Custom Config File in Laravel

While developing web applications configuration plays a major role. Laravel framework makes it easy to handle configurations for complex applications with config files. All configuration files for the Laravel framework are stored in the config directory. In Laravel, you can create custom config files as per your requirements. You can also use the config() helper

Learn More

Laravel One to One Relationship Example

In database design, relationships are important to perform normalization. With a relationship, we can easily store, retrieve, and validate data. In the Laravel framework, Eloquent provides an easy way to work with database relationships. In this example, we create two different tables and define the relationship between them. A one-to-one relationship is a very simple

Learn More

Most Useful Array Function in PHP

In this tutorial, we will learn about PHP array functions and how to use them. Those array functions are in-built into PHP. There are many array functions in PHP but in this tutorial, we will see most common and regular-use functions with practical examples. Before starting, let’s know more about the array. What is an

Learn More

Remove the Passport Package in Laravel

Laravel Passport API authentication is one of the best API authentication packages but sometimes we are required to use other authentication systems like Sanctum or JWT after using Laravel. Then it required removing Laravel’s passport completely. We can directly change the package but it will hold file memory and database table with it. Eventually, it

Learn More