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
The error you're seeing indicates that the request to fetch the image from
https://elearning.theteam.com.tn/storage/files/4here_we_go.jpg
is being blocked by the browser's CORS policy. This means the server atelearning.theteam.com.tn
is not allowing requests from the domainhttps://cool-napier.85-215-138-217.plesk.page
.To fix this issue, you need to configure your Laravel backend to include the
Access-Control-Allow-Origin
header in its responses. Here’s how to do it:Step 1: Update CORS Configuration
Update your
config/cors.php
file to allow requests from your frontend domain:Step 2: Install Laravel CORS Package (If Not Installed)
If you haven't already installed the Laravel CORS package, you can do so using Composer:
Step 3: Clear Configuration Cache
After updating the CORS configuration, clear the configuration cache to ensure Laravel uses the updated settings: