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
JWT
Secret KeyRun the artisan command to generate a
JWT
secret key:This command will generate a secret key and add it to your
.env
file asJWT_SECRET
.Step B: Manually Edit the
.env
File (if necessary)If you need to add or update the
JWT
secret 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
.env
file.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
.env
file 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
.env
file, clear the configuration cache to ensure Laravel uses the latest environment variables: