composer install
composer dump-autoload
composer update
Database Schema Generation
php artisan serve --port=8020
php artisan migrate
php artisan migrate --seed
php artisan migrate:refresh
php artisan migrate:refresh --seed
php artisan serve --port=8020 --host=0.0.0.0
When quizzes table is deleted :
php artisan make:migration create_quizzes_table
php artisan migrate
- To Double Check :
- Migration Status: You can check the status of your migrations using the command:
- Rollback & Re-migrate: If needed, you can rollback the last batch of migrations (which will drop the tables) and then re-run them.
php artisan migrate:status
php artisan migrate:rollback
composer require barryvdh/laravel-ide-helper
https://stackoverflow.com/questions/68515548/phpstorm-says-find-method-not-found
https://techvblogs.com/blog/laravel-10-crud-example-tutorial-for-beginners
Issue when I used the /auth/login
To Solve this issue :
https://onlinecode.org/this-cache-store-does-not-support-tagging-in-laravel/
Step A: Generate the
JWTSecret KeyRun the artisan command to generate a
JWTsecret key:This command will generate a secret key and add it to your
.envfile asJWT_SECRET.Step B: Manually Edit the
.envFile (if necessary)If you need to add or update the
JWTsecret key manually, you can do so by editing the .env file directly.Open the File Manager in Plesk.
Navigate to your Laravel project's root directory.
Locate and open the
.envfile.Add or update the following line with the generated key:
Replace your_generated_secret_key with the actual key you generated.
Step C: Ensure Proper Permissions
Make sure that the
.envfile has the correct permissions so that your Laravel application can read it. You can set the permissions using the Plesk File Manager or via the terminal:Step D: Clear Configuration Cache
After updating the
.envfile, clear the configuration cache to ensure Laravel uses the latest environment variables: