This is a tool called refresh.sh
that helps you clean up and start fresh with your Laravel application. It's like giving your application a clean slate. You just need to run this tool from the main folder of your Laravel app.
Right now, this tool only works on Linux systems, but I'm working on making it compatible with all types of systems soon! 💻
- First, download or copy this tool to your computer.
- Then, go to the main folder of your Laravel application.
- Put the
refresh.sh
file right there. - Now, open your computer's terminal and type
./refresh.sh
to run the tool.
This tool does a few things to refresh your Laravel app:
- Config Caching: It saves some settings to make your app faster using
php artisan config:cache
. - Config Clearing: Sometimes, it needs to clear those saved settings, and it does that with
php artisan config:clear
. - Cache Clearing: It also cleans up any temporary files with
php artisan cache:clear
. - Database Migration: If your database needs to be set up again, it does that with
php artisan migrate:fresh
. - Database Seeding: It even adds some sample data to your database with
php artisan db:seed
.
- If you see any red lines while running this tool, it might mean something's not right.
- Make sure you have permission to use this tool on your computer.
- This tool is best used for testing and developing your app, not for live or production websites.
This tool follows the rules of the MIT License.