1.8 KiB
Artisan Commands
Artisan commands are run in the root of the project directory where the artisan
file is present.
For an entire list of commands, you can run php artisan list
Index
Commands
Serve
Command: serve
Example: php artisan serve
Serve the application on the PHP development server
Queue
Queue: Clear
Command: queue:clear
Example: php artisan queue:clear
This will empty any cache updater jobs that are currently in queue if you're using the Queue Cache Method
Cache
Cache: Remove
Command: cache:remove {key}
Example: php artisan cache:remove request:anime:d6092f2422f084452c84555f17c7ba047e6998d3
This will remove the cache of a specific request. You can retrieve any request's hash key by visiting the request.
In v2-v3, the request hash key is defined in the JSON response body as request_hash
.
In v3.4+, the request is defined in the response headers as X-Request-Hash
as well.
In v4+, the request is defined only in the response header.
Cache: Change Cache Driver
Command: cache:driver {driver}
Example: cache:driver redis
Cache: Change Cache Method
Command: cache:method {method}
Example: cache:method queue