@echo off
echo Clearing Laravel Cache...
echo.

echo [1/6] Clearing application cache...
php artisan cache:clear

echo [2/6] Clearing config cache...
php artisan config:clear

echo [3/6] Clearing route cache...
php artisan route:clear

echo [4/6] Clearing view cache...
php artisan view:clear

echo [5/6] Clearing compiled classes...
php artisan clear-compiled

echo [6/6] Optimizing autoloader...
composer dump-autoload

echo.
echo ========================================
echo Cache cleared successfully!
echo ========================================
echo.
echo Please restart your development server:
echo - If using "php artisan serve", press Ctrl+C and run it again
echo - If using Apache/Nginx, restart the web server
echo.
pause
