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

MySQL Database Connection Tutorial in PHP

While developing a dynamic website, the first thing we need to connect our database to a PHP application. Even small application that requires dynamic data needs a database connection. Without a database connection, we can’t perform any operations like create, read, update, and delete. In this tutorial, we will connect our PHP application with MySQL

Learn More

Check Database Connection in Laravel

In this example, we will check the database connection in Laravel. Before starting to create a new Laravel application start your database services like XAMPP or WAMPP and change database credentials in the .env file. Here, we will check database is connected and get an active database name using DB helper. To check database exists

Learn More