Handyman Service - Documentation

Update the Laravel code

1. Backup First

  • Take a backup of your database.
  • Backup important project files, especially:
    • .env
    • storage/
    • public/storage/
    • Any custom changes you made.

2. Upload New Code

Extract the new update package on your local system.

Replace project files on the server, but do not replace:

  • .env (contains your Database and App configurations).
  • storage/(contains user uploads, logs, cache).
  • public/storage/ or any custom folders.

3. Install Dependencies

Go to the project root folder and run:

composer install

👉 This will install/update the Laravel packages.

4. Run Migrations (if DB changes exist)
If the update includes database changes, run:

php artisan migrate

5. Clear & Rebuild Cache
Run these commands:

php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan config:cache

👉 This will clear the old cache and rebuild a new one.

6. Set Permissions (Linux Server પર)
Make sure the following folders are writable:

chmod -R 775 storage bootstrap/cache

7. Check Version in Admin Panel

  • After updating, login to the Admin Panel.
  • Go to Settings → System Info.
  • Confirm if the new version is showing.

✅ Following these steps will help you update your Laravel project successfully.