Category: database
Do’s and Don’t for a database maintenance
Here I have listed some do’s and don’ts for a database project. Do’s for a Database Maintenance Project: 1. Regularly perform database backups to prevent data loss in case of system failures or disasters. 2. Monitor database performance metrics such as CPU usage, memory usage, and disk I/O to identify potential bottlenecks. 3. Implement database…
Read MoreSeeding: Array[ReflectionException]Class Array does not exist Error while trying to seed the database in Laravel
While I tried to seed the database in laravel after the migration with the below artisan command, php artisan db:seed I received the below error: Seeding: Array [ReflectionException] Class Array does not exist There are a few possible causes for the error message “ReflectionException: Class Array does not exist” that appears when Laravel tries to use a class that it cannot locate. These include: The class might not have been properly imported or required at the top of the file. The class might not have been properly imported or required at the top of the file. Composer dump-autoload may not be done. I solved this by running the below command: composer update and then run: composer dump-autoload Now run…
Read More