Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel Commands #298

Open
saeedvaziry opened this issue Oct 2, 2024 · 2 comments
Open

Laravel Commands #298

saeedvaziry opened this issue Oct 2, 2024 · 2 comments
Labels
feature New feature or request
Milestone

Comments

@saeedvaziry
Copy link
Member

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

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

  • Cache
  • Up/Down
  • Queue (failed, restart ...)
  • Custom commands
  • Write down here if you think more commands are needed.
@saeedvaziry saeedvaziry added the feature New feature or request label Oct 2, 2024
@saeedvaziry saeedvaziry added this to the v2 milestone Oct 2, 2024
@saeedvaziry saeedvaziry added this to Vito Oct 2, 2024
@saeedvaziry saeedvaziry moved this to Todo in Vito Oct 2, 2024
@saeedvaziry
Copy link
Member Author

Blocked by #297

@saeedvaziry saeedvaziry self-assigned this Oct 2, 2024
@saeedvaziry saeedvaziry removed their assignment Oct 15, 2024
@link2dawood
Copy link

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants