vitodeploy / vito

The Ultimate Server Management Tool
https://vitodeploy.com
GNU Affero General Public License v3.0
1.14k stars 176 forks source link

Laravel Commands #298

Open saeedvaziry opened 2 weeks ago

saeedvaziry commented 2 weeks ago

From: https://vitodeploy.featurebase.app/p/laravel-commands

Create a new section in the sites to support Laravel artisan commands like:

saeedvaziry commented 2 weeks ago

Blocked by #297

link2dawood commented 5 days ago
  1. Cache Management Command: php artisan cache:clear Description: Clears all the cache data for the application. Use Case: Useful when data is outdated and needs to be refreshed.

Related Commands: php artisan config:cache – Caches the configuration files. php artisan route:cache – Caches the routes for better performance. php artisan view:clear – Clears compiled views.

  1. Maintenance Mode (Up/Down) Command: php artisan down Description: Puts the application into maintenance mode, preventing users from accessing it while updates or changes are being made. Use Case: Ideal for major updates or database migrations. Command: php artisan up Description: Brings the application back online after maintenance.

  2. Queue Management Command: php artisan queue:restart Description: Restarts queue workers to apply changes to the application or queue configurations. Use Case: Use when you update code that is being processed by workers.

Command: php artisan queue:failed Description: Shows a list of all failed jobs in the queue. Command: php artisan queue:flush Description: Deletes all failed queue jobs. Command: php artisan queue:work Description: Starts processing jobs in the queue.

  1. Custom Commands Command: php artisan make:command CustomCommandName Description: Creates a new custom Artisan command that can be used for specific application tasks. Use Case: Useful for adding tailored functionality to your Laravel application, such as scheduled tasks or batch processing.

  2. Database Commands Command: php artisan migrate Description: Runs all outstanding migrations. Command: php artisan migrate:rollback Description: Rolls back the last database migration.

  3. Other Useful Commands Command: php artisan serve Description: Starts a local development server. Command: php artisan tinker Description: Opens an interactive shell for running Laravel/PHP code in real-time.