ProjectsAndPrograms / crud-laravel-10

A simple crud application with all the basic features you have to know.
0 stars 1 forks source link

can't run code #1

Open mohamad-bin-idrus opened 5 months ago

mohamad-bin-idrus commented 5 months ago

i just wanna run and that error appears. can you help me? Cuplikan layar 2024-05-14 213538

ProjectsAndPrograms commented 5 months ago

The problem may be occure due to several reasons :

  1. Check your .env file: The database credentials for Laravel are typically stored in the .env file located at the root of your Laravel project. Make sure that the DB_USERNAME and DB_PASSWORD variables in this file match the credentials for your MySQL database user.

  2. check your database is created with the proper schema of not.

Additional resources that you may find helpful: Laravel documentation on database configuration: https://laravel.com/docs/4.2/database