Ctrl+K

_complete

Internal command to provide shell completion suggestions

Options

  • current - The index of the "input" array that the cursor is in (e.g. COMP_CWORD) Required
  • input - An array of input tokens (e.g. COMP_WORDS or argv) Required
  • shell - The shell type ("bash") Required
  • symfony - The version of the completion script Required
php artisan _complete [-s|--shell SHELL] [-i|--input INPUT] [-c|--current CURRENT] [-S|--symfony SYMFONY]

clear-compiled

Remove the compiled class file

php artisan clear-compiled

completion

Dump the shell completion script

Options

  • debug - Tail the completion debug log Optional

Arguments

  • shell - The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given Optional
php artisan completion [--debug] [--] [<shell>]

down

Put the application into maintenance mode

Options

  • allow - IP or networks allowed to access the application while in maintenance mode Optional
  • message - The message for the maintenance mode Optional
  • retry - The number of seconds after which the request may be retried Optional
php artisan down [--message [MESSAGE]] [--retry [RETRY]] [--allow [ALLOW]]

dusk

Run the Dusk tests for the application

Options

  • browse - Open a browser instead of using headless mode Optional
  • pest - Run the tests using Pest Optional
  • without-tty - Disable output to TTY Optional
php artisan dusk [--browse] [--without-tty] [--pest]

env

Display the current framework environment

php artisan env

help

Display help for a command

Options

  • format - The output format (txt, xml, json, or md) Required
  • raw - To output raw command help Optional

Arguments

  • command_name - The command name Optional
php artisan help [--format FORMAT] [--raw] [--] [<command_name>]

horizon

Start a master supervisor in the foreground

Options

  • environment - The environment name Optional
php artisan horizon [--environment [ENVIRONMENT]]

inspire

Display an inspiring quote

php artisan inspire

list

List commands

Options

  • format - The output format (txt, xml, json, or md) Required
  • raw - To output raw command list Optional
  • short - To skip describing commands' arguments Optional

Arguments

  • namespace - The namespace name Optional
php artisan list [--raw] [--format FORMAT] [--short] [--] [<namespace>]

migrate

Run the database migrations

Options

  • database - The database connection to use Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • pretend - Dump the SQL queries that would be run Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • seed - Indicates if the seed task should be re-run Optional
  • step - Force the migrations to be run so they can be rolled back individually Optional
php artisan migrate [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend] [--seed] [--step]

optimize

Cache the framework bootstrap files

php artisan optimize

serve

Serve the application on the PHP development server

Options

  • host - The host address to serve the application on Optional
  • port - The port to serve the application on Optional
  • tries - The max number of ports to attempt to serve from Optional
php artisan serve [--host [HOST]] [--port [PORT]] [--tries [TRIES]]

test

Run the application tests

Options

  • without-tty - Disable output to TTY Optional
php artisan test [--without-tty]

tinker

Interact with your application

Options

  • execute - Execute the given code using Tinker Optional

Arguments

  • include - Include file(s) before starting tinker Optional
php artisan tinker [--execute [EXECUTE]] [--] [<include>...]

up

Bring the application out of maintenance mode

php artisan up

auth:clear-resets

Flush expired password reset tokens

Arguments

  • name - The name of the password broker Optional
php artisan auth:clear-resets [<name>]

cache:clear

Flush the application cache

Options

  • tags - The cache tags you would like to clear Optional

Arguments

  • store - The name of the store you would like to clear Optional
php artisan cache:clear [--tags [TAGS]] [--] [<store>]

cache:forget

Remove an item from the cache

Arguments

  • key - The key to remove Required
  • store - The store to remove the key from Optional
php artisan cache:forget <key> [<store>]

cache:table

Create a migration for the cache database table

php artisan cache:table

cashier:webhook

Create the Stripe webhook to interact with Cashier.

Options

  • api-version - The Stripe API version the webhook should use Optional
  • disabled - Immediately disable the webhook after creation Optional
  • url - The URL endpoint for the webhook Optional
php artisan cashier:webhook [--disabled] [--url [URL]] [--api-version [API-VERSION]]

config:cache

Create a cache file for faster configuration loading

php artisan config:cache

config:clear

Remove the configuration cache file

php artisan config:clear

db:seed

Seed the database with records

Options

  • class - The class name of the root seeder Optional
  • database - The database connection to seed Optional
  • force - Force the operation to run when in production Optional
php artisan db:seed [--class [CLASS]] [--database [DATABASE]] [--force]

db:wipe

Drop all tables, views, and types

Options

  • database - The database connection to use Optional
  • drop-types - Drop all tables and types (Postgres only) Optional
  • drop-views - Drop all tables and views Optional
  • force - Force the operation to run when in production Optional
php artisan db:wipe [--database [DATABASE]] [--drop-views] [--drop-types] [--force]

dusk:chrome-driver

Install the ChromeDriver binary

Options

  • all - Install a ChromeDriver binary for every OS Optional
  • detect - Detect the installed Chrome / Chromium version Optional
  • proxy - The proxy to download the binary through (example: "tcp://127.0.0.1:9000") Optional
  • ssl-no-verify - Bypass SSL certificate verification when installing through a proxy Optional

Arguments

  • version - Optional
php artisan dusk:chrome-driver [--all] [--detect] [--proxy [PROXY]] [--ssl-no-verify] [--] [<version>]

dusk:component

Create a new Dusk component class

Arguments

  • name - The name of the class Required
php artisan dusk:component <name>

dusk:fails

Run the failing Dusk tests from the last run and stop on failure

Options

  • browse - Open a browser instead of using headless mode Optional
  • pest - Run the tests using Pest Optional
  • without-tty - Disable output to TTY Optional
php artisan dusk:fails [--browse] [--without-tty] [--pest]

dusk:install

Install Dusk into the application

Options

  • proxy - The proxy to download the binary through (example: "tcp://127.0.0.1:9000") Optional
  • ssl-no-verify - Bypass SSL certificate verification when installing through a proxy Optional
php artisan dusk:install [--proxy [PROXY]] [--ssl-no-verify]

dusk:make

Create a new Dusk test class

Arguments

  • name - The name of the class Required
php artisan dusk:make <name>

dusk:page

Create a new Dusk page class

Arguments

  • name - The name of the class Required
php artisan dusk:page <name>

dusk:purge

Purge dusk test debugging files

php artisan dusk:purge

event:cache

Discover and cache the application's events and listeners

php artisan event:cache

event:clear

Clear all cached events and listeners

php artisan event:clear

event:generate

Generate the missing events and listeners based on registration

php artisan event:generate

event:list

List the application's events and listeners

Options

  • event - Filter the events by name Optional
php artisan event:list [--event [EVENT]]

horizon:continue

Instruct the master supervisor to continue processing jobs

php artisan horizon:continue

horizon:install

Install all of the Horizon resources

php artisan horizon:install

horizon:list

List all of the deployed machines

php artisan horizon:list

horizon:pause

Pause the master supervisor

php artisan horizon:pause

horizon:publish

Publish all of the Horizon resources

php artisan horizon:publish

horizon:purge

Terminate any rogue Horizon processes

php artisan horizon:purge

horizon:snapshot

Store a snapshot of the queue metrics

php artisan horizon:snapshot

horizon:status

Get the current status of Horizon

php artisan horizon:status

horizon:supervisor

Start a new supervisor

Options

  • balance - The balancing strategy the supervisor should apply Optional
  • delay - Amount of time to delay failed jobs Optional
  • force - Force the worker to run even in maintenance mode Optional
  • max-processes - The maximum number of total workers to start Optional
  • memory - The memory limit in megabytes Optional
  • min-processes - The minimum number of workers to assign per queue Optional
  • nice - The process priority Optional
  • paused - Start the supervisor in a paused state Optional
  • queue - The names of the queues to work Optional
  • sleep - Number of seconds to sleep when no job is available Optional
  • timeout - The number of seconds a child process can run Optional
  • tries - Number of times to attempt a job before logging it failed Optional

Arguments

  • name - The name of supervisor Required
  • connection - The name of the connection to work Required
php artisan horizon:supervisor [--balance [BALANCE]] [--delay [DELAY]] [--force] [--max-processes [MAX-PROCESSES]] [--min-processes [MIN-PROCESSES]] [--memory [MEMORY]] [--nice [NICE]] [--paused] [--queue [QUEUE]] [--sleep [SLEEP]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] <name> <connection>

horizon:supervisors

List all of the supervisors

php artisan horizon:supervisors

horizon:terminate

Terminate the master supervisor so it can be restarted

Options

  • wait - Wait for all workers to terminate Optional
php artisan horizon:terminate [--wait]

horizon:timeout

Get the maximum timeout for the given environment

Arguments

  • environment - The environment name Optional
php artisan horizon:timeout [<environment>]

horizon:work

Start processing jobs on the queue as a daemon

Options

  • daemon - Run the worker in daemon mode (Deprecated) Optional
  • delay - Amount of time to delay failed jobs Optional
  • force - Force the worker to run even in maintenance mode Optional
  • memory - The memory limit in megabytes Optional
  • once - Only process the next job on the queue Optional
  • queue - The names of the queues to work Optional
  • sleep - Number of seconds to sleep when no job is available Optional
  • stop-when-empty - Stop when the queue is empty Optional
  • supervisor - The name of the supervisor the worker belongs to Optional
  • timeout - The number of seconds a child process can run Optional
  • tries - Number of times to attempt a job before logging it failed Optional

Arguments

  • connection - The name of the queue connection to work Optional
php artisan horizon:work [--delay [DELAY]] [--daemon] [--force] [--memory [MEMORY]] [--once] [--stop-when-empty] [--queue [QUEUE]] [--sleep [SLEEP]] [--supervisor [SUPERVISOR]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] [<connection>]

inertia:middleware

Create a new Inertia middleware

Options

  • force - Create the class even if the Middleware already exists Optional

Arguments

  • name - Name of the Middleware that should be created Optional
php artisan inertia:middleware [--force] [--] [<name>]

inertia:start-ssr

Start the Inertia SSR server

Options

  • runtime - The runtime to use (`node` or `bun`) Optional
php artisan inertia:start-ssr [--runtime [RUNTIME]]

inertia:stop-ssr

Stop the Inertia SSR server

php artisan inertia:stop-ssr

key:generate

Set the application key

Options

  • force - Force the operation to run when in production Optional
  • show - Display the key instead of modifying files Optional
php artisan key:generate [--show] [--force]

livewire:configure-s3-upload-cleanup

Configure temporary file upload s3 directory to automatically cleanup files older than 24hrs

php artisan livewire:configure-s3-upload-cleanup

livewire:copy

Copy a Livewire component

Options

  • force - Optional
  • inline - Optional
  • test - Optional

Arguments

  • name - Required
  • new-name - Required
php artisan livewire:copy [--inline] [--force] [--test] [--] <name> <new-name>

livewire:cp

Copy a Livewire component

Options

  • force - Optional
  • inline - Optional
  • test - Optional

Arguments

  • name - Required
  • new-name - Required
php artisan livewire:cp [--inline] [--force] [--test] [--] <name> <new-name>

livewire:delete

Delete a Livewire component

Options

  • force - Optional
  • inline - Optional
  • test - Optional

Arguments

  • name - Required
php artisan livewire:delete [--inline] [--force] [--test] [--] <name>

livewire:discover

Regenerate Livewire component auto-discovery manifest

php artisan livewire:discover

livewire:make

Create a new Livewire component

Options

  • force - Optional
  • inline - Optional
  • stub - If you have several stubs, stored in subfolders Optional
  • test - Optional

Arguments

  • name - Required
php artisan livewire:make [--force] [--inline] [--test] [--stub [STUB]] [--] <name>

livewire:move

Move a Livewire component

Options

  • force - Optional
  • inline - Optional

Arguments

  • name - Required
  • new-name - Required
php artisan livewire:move [--force] [--inline] [--] <name> <new-name>

livewire:mv

Move a Livewire component

Options

  • force - Optional
  • inline - Optional

Arguments

  • name - Required
  • new-name - Required
php artisan livewire:mv [--inline] [--force] [--] <name> <new-name>

livewire:publish

Publish Livewire configuration

Options

  • assets - Indicates if Livewire's front-end assets should be published Optional
  • config - Indicates if Livewire's config file should be published Optional
  • pagination - Indicates if Livewire's pagination views should be published Optional
php artisan livewire:publish [--assets] [--config] [--pagination]

livewire:rm

Delete a Livewire component

Options

  • force - Optional
  • inline - Optional
  • test - Optional

Arguments

  • name - Required
php artisan livewire:rm [--inline] [--force] [--test] [--] <name>

livewire:stubs

Publish Livewire stubs

php artisan livewire:stubs

livewire:touch

Create a new Livewire component

Options

  • force - Optional
  • inline - Optional
  • stub - Optional
  • test - Optional

Arguments

  • name - Required
php artisan livewire:touch [--force] [--inline] [--test] [--stub [STUB]] [--] <name>

make:cast

Create a new custom Eloquent cast class

Arguments

  • name - The name of the class Required
php artisan make:cast <name>

make:channel

Create a new channel class

Arguments

  • name - The name of the class Required
php artisan make:channel <name>

make:command

Create a new Artisan command

Options

  • command - The terminal command that should be assigned Optional

Arguments

  • name - The name of the command Required
php artisan make:command [--command [COMMAND]] [--] <name>

make:component

Create a new view component class

Options

  • force - Create the class even if the component already exists Optional
  • inline - Create a component that renders an inline view Optional

Arguments

  • name - The name of the class Required
php artisan make:component [--force] [--inline] [--] <name>

make:controller

Create a new controller class

Options

  • api - Exclude the create and edit methods from the controller. Optional
  • force - Create the class even if the controller already exists Optional
  • invokable - Generate a single method, invokable controller class. Optional
  • model - Generate a resource controller for the given model. Optional
  • parent - Generate a nested resource controller class. Optional
  • resource - Generate a resource controller class. Optional

Arguments

  • name - The name of the class Required
php artisan make:controller [--api] [--force] [-i|--invokable] [-m|--model [MODEL]] [-p|--parent [PARENT]] [-r|--resource] [--] <name>

make:event

Create a new event class

Arguments

  • name - The name of the class Required
php artisan make:event <name>

make:exception

Create a new custom exception class

Options

  • render - Create the exception with an empty render method Optional
  • report - Create the exception with an empty report method Optional

Arguments

  • name - The name of the class Required
php artisan make:exception [--render] [--report] [--] <name>

make:factory

Create a new model factory

Options

  • model - The name of the model Optional

Arguments

  • name - The name of the class Required
php artisan make:factory [-m|--model [MODEL]] [--] <name>

make:job

Create a new job class

Options

  • sync - Indicates that job should be synchronous Optional

Arguments

  • name - The name of the class Required
php artisan make:job [--sync] [--] <name>

make:listener

Create a new event listener class

Options

  • event - The event class being listened for Optional
  • queued - Indicates the event listener should be queued Optional

Arguments

  • name - The name of the class Required
php artisan make:listener [-e|--event [EVENT]] [--queued] [--] <name>

make:livewire

Create a new Livewire component

Options

  • force - Optional
  • inline - Optional
  • stub - Optional
  • test - Optional

Arguments

  • name - Required
php artisan make:livewire [--force] [--inline] [--test] [--stub [STUB]] [--] <name>

make:mail

Create a new email class

Options

  • force - Create the class even if the mailable already exists Optional
  • markdown - Create a new Markdown template for the mailable Optional

Arguments

  • name - The name of the class Required
php artisan make:mail [-f|--force] [-m|--markdown [MARKDOWN]] [--] <name>

make:middleware

Create a new middleware class

Arguments

  • name - The name of the class Required
php artisan make:middleware <name>

make:migration

Create a new migration file

Options

  • create - The table to be created Optional
  • fullpath - Output the full path of the migration Optional
  • path - The location where the migration file should be created Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • table - The table to migrate Optional

Arguments

  • name - The name of the migration Required
php artisan make:migration [--create [CREATE]] [--table [TABLE]] [--path [PATH]] [--realpath] [--fullpath] [--] <name>

make:model

Create a new Eloquent model class

Options

  • all - Generate a migration, seeder, factory, and resource controller for the model Optional
  • api - Indicates if the generated controller should be an API controller Optional
  • controller - Create a new controller for the model Optional
  • factory - Create a new factory for the model Optional
  • force - Create the class even if the model already exists Optional
  • migration - Create a new migration file for the model Optional
  • pivot - Indicates if the generated model should be a custom intermediate table model Optional
  • resource - Indicates if the generated controller should be a resource controller Optional
  • seed - Create a new seeder file for the model Optional

Arguments

  • name - The name of the class Required
php artisan make:model [-a|--all] [-c|--controller] [-f|--factory] [--force] [-m|--migration] [-s|--seed] [-p|--pivot] [-r|--resource] [--api] [--] <name>

make:notification

Create a new notification class

Options

  • force - Create the class even if the notification already exists Optional
  • markdown - Create a new Markdown template for the notification Optional

Arguments

  • name - The name of the class Required
php artisan make:notification [-f|--force] [-m|--markdown [MARKDOWN]] [--] <name>

make:observer

Create a new observer class

Options

  • model - The model that the observer applies to. Optional

Arguments

  • name - The name of the class Required
php artisan make:observer [-m|--model [MODEL]] [--] <name>

make:policy

Create a new policy class

Options

  • guard - The guard that the policy relies on Optional
  • model - The model that the policy applies to Optional

Arguments

  • name - The name of the class Required
php artisan make:policy [-m|--model [MODEL]] [-g|--guard [GUARD]] [--] <name>

make:provider

Create a new service provider class

Arguments

  • name - The name of the class Required
php artisan make:provider <name>

make:request

Create a new form request class

Arguments

  • name - The name of the class Required
php artisan make:request <name>

make:resource

Create a new resource

Options

  • collection - Create a resource collection Optional

Arguments

  • name - The name of the class Required
php artisan make:resource [-c|--collection] [--] <name>

make:rule

Create a new validation rule

Arguments

  • name - The name of the class Required
php artisan make:rule <name>

make:seeder

Create a new seeder class

Arguments

  • name - The name of the class Required
php artisan make:seeder <name>

make:test

Create a new test class

Options

  • unit - Create a unit test Optional

Arguments

  • name - The name of the class Required
php artisan make:test [--unit] [--] <name>

migrate:fresh

Drop all tables and re-run all migrations

Options

  • database - The database connection to use Optional
  • drop-types - Drop all tables and types (Postgres only) Optional
  • drop-views - Drop all tables and views Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • seed - Indicates if the seed task should be re-run Optional
  • seeder - The class name of the root seeder Optional
  • step - Force the migrations to be run so they can be rolled back individually Optional
php artisan migrate:fresh [--database [DATABASE]] [--drop-views] [--drop-types] [--force] [--path [PATH]] [--realpath] [--seed] [--seeder [SEEDER]] [--step]

migrate:install

Create the migration repository

Options

  • database - The database connection to use Optional
php artisan migrate:install [--database [DATABASE]]

migrate:refresh

Reset and re-run all migrations

Options

  • database - The database connection to use Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • seed - Indicates if the seed task should be re-run Optional
  • seeder - The class name of the root seeder Optional
  • step - The number of migrations to be reverted & re-run Optional
php artisan migrate:refresh [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--seed] [--seeder [SEEDER]] [--step [STEP]]

migrate:reset

Rollback all database migrations

Options

  • database - The database connection to use Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • pretend - Dump the SQL queries that would be run Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
php artisan migrate:reset [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend]

migrate:rollback

Rollback the last database migration

Options

  • database - The database connection to use Optional
  • force - Force the operation to run when in production Optional
  • path - The path(s) to the migrations files to be executed Optional
  • pretend - Dump the SQL queries that would be run Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
  • step - The number of migrations to be reverted Optional
php artisan migrate:rollback [--database [DATABASE]] [--force] [--path [PATH]] [--realpath] [--pretend] [--step [STEP]]

migrate:status

Show the status of each migration

Options

  • database - The database connection to use Optional
  • path - The path(s) to the migrations files to use Optional
  • realpath - Indicate any provided migration file paths are pre-resolved absolute paths Optional
php artisan migrate:status [--database [DATABASE]] [--path [PATH]] [--realpath]

notifications:table

Create a migration for the notifications table

php artisan notifications:table

optimize:clear

Remove the cached bootstrap files

php artisan optimize:clear

package:discover

Rebuild the cached package manifest

php artisan package:discover

passport:client

Create a client for issuing access tokens

Options

  • client - Create a client credentials grant client Optional
  • name - The name of the client Optional
  • password - Create a password grant client Optional
  • personal - Create a personal access token client Optional
  • provider - The name of the user provider Optional
  • public - Create a public client (Auth code grant type only) Optional
  • redirect_uri - The URI to redirect to after authorization Optional
  • user_id - The user ID the client should be assigned to Optional
php artisan passport:client [--personal] [--password] [--client] [--name [NAME]] [--provider [PROVIDER]] [--redirect_uri [REDIRECT_URI]] [--user_id [USER_ID]] [--public]

passport:hash

Hash all of the existing secrets in the clients table

Options

  • force - Force the operation to run without confirmation prompt Optional
php artisan passport:hash [--force]

passport:install

Run the commands necessary to prepare Passport for use

Options

  • force - Overwrite keys they already exist Optional
  • length - The length of the private key Optional
  • uuids - Use UUIDs for all client IDs Optional
php artisan passport:install [--uuids] [--force] [--length [LENGTH]]

passport:keys

Create the encryption keys for API authentication

Options

  • force - Overwrite keys they already exist Optional
  • length - The length of the private key Optional
php artisan passport:keys [--force] [--length [LENGTH]]

passport:purge

Purge revoked and / or expired tokens and authentication codes

Options

  • expired - Only purge expired tokens and authentication codes Optional
  • revoked - Only purge revoked tokens and authentication codes Optional
php artisan passport:purge [--revoked] [--expired]

queue:failed

List all of the failed queue jobs

php artisan queue:failed

queue:failed-table

Create a migration for the failed queue jobs database table

php artisan queue:failed-table

queue:flush

Flush all of the failed queue jobs

php artisan queue:flush

queue:forget

Delete a failed queue job

Arguments

  • id - The ID of the failed job Required
php artisan queue:forget <id>

queue:listen

Listen to a given queue

Options

  • delay - The number of seconds to delay failed jobs Optional
  • force - Force the worker to run even in maintenance mode Optional
  • memory - The memory limit in megabytes Optional
  • queue - The queue to listen on Optional
  • sleep - Number of seconds to sleep when no job is available Optional
  • timeout - The number of seconds a child process can run Optional
  • tries - Number of times to attempt a job before logging it failed Optional

Arguments

  • connection - The name of connection Optional
php artisan queue:listen [--delay [DELAY]] [--force] [--memory [MEMORY]] [--queue [QUEUE]] [--sleep [SLEEP]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] [<connection>]

queue:restart

Restart queue worker daemons after their current job

php artisan queue:restart

queue:retry

Retry a failed queue job

Options

  • range - Range of job IDs (numeric) to be retried Optional

Arguments

  • id - The ID of the failed job or "all" to retry all jobs Optional
php artisan queue:retry [--range [RANGE]] [--] [<id>...]

queue:table

Create a migration for the queue jobs database table

php artisan queue:table

queue:work

Start processing jobs on the queue as a daemon

Options

  • daemon - Run the worker in daemon mode (Deprecated) Optional
  • delay - The number of seconds to delay failed jobs Optional
  • force - Force the worker to run even in maintenance mode Optional
  • memory - The memory limit in megabytes Optional
  • once - Only process the next job on the queue Optional
  • queue - The names of the queues to work Optional
  • sleep - Number of seconds to sleep when no job is available Optional
  • stop-when-empty - Stop when the queue is empty Optional
  • timeout - The number of seconds a child process can run Optional
  • tries - Number of times to attempt a job before logging it failed Optional

Arguments

  • connection - The name of the queue connection to work Optional
php artisan queue:work [--queue [QUEUE]] [--daemon] [--once] [--stop-when-empty] [--delay [DELAY]] [--force] [--memory [MEMORY]] [--sleep [SLEEP]] [--timeout [TIMEOUT]] [--tries [TRIES]] [--] [<connection>]

route:cache

Create a route cache file for faster route registration

php artisan route:cache

route:clear

Remove the route cache file

php artisan route:clear

route:list

List all registered routes

Options

  • columns - Columns to include in the route table Optional
  • compact - Only show method, URI and action columns Optional
  • json - Output the route list as JSON Optional
  • method - Filter the routes by method Optional
  • name - Filter the routes by name Optional
  • path - Filter the routes by path Optional
  • reverse - Reverse the ordering of the routes Optional
  • sort - The column (domain, method, uri, name, action, middleware) to sort by Optional
php artisan route:list [--columns [COLUMNS]] [-c|--compact] [--json] [--method [METHOD]] [--name [NAME]] [--path [PATH]] [-r|--reverse] [--sort [SORT]]

sanctum:prune-expired

Prune tokens expired for more than specified number of hours.

Options

  • hours - The number of hours to retain expired Sanctum tokens Optional
php artisan sanctum:prune-expired [--hours [HOURS]]

schedule:finish

Handle the completion of a scheduled command

Arguments

  • id - Required
  • code - Optional
php artisan schedule:finish <id> [<code>]

schedule:run

Run the scheduled commands

php artisan schedule:run

scout:flush

Flush all of the model's records from the index

Arguments

  • model - Required
php artisan scout:flush <model>

scout:import

Import the given model into the search index

Options

  • chunk - The number of records to import at a time (Defaults to configuration value: `scout.chunk.searchable`) Optional

Arguments

  • model - Class name of model to bulk import Required
php artisan scout:import [-c|--chunk [CHUNK]] [--] <model>

session:table

Create a migration for the session database table

php artisan session:table

storage:link

Create the symbolic links configured for the application

Options

  • relative - Create the symbolic link using relative paths Optional
php artisan storage:link [--relative]

stub:publish

Publish all stubs that are available for customization

Options

  • force - Overwrite any existing files Optional
php artisan stub:publish [--force]

telescope:clear

Clear all entries from Telescope

php artisan telescope:clear

telescope:install

Install all of the Telescope resources

php artisan telescope:install

telescope:prune

Prune stale entries from the Telescope database

Options

  • hours - The number of hours to retain Telescope data Optional
php artisan telescope:prune [--hours [HOURS]]

telescope:publish

Publish all of the Telescope resources

Options

  • force - Overwrite any existing files Optional
php artisan telescope:publish [--force]

vendor:publish

Publish any publishable assets from vendor packages

Options

  • all - Publish assets for all service providers without prompt Optional
  • force - Overwrite any existing files Optional
  • provider - The service provider that has assets you want to publish Optional
  • tag - One or many tags that have assets you want to publish Optional
php artisan vendor:publish [--force] [--all] [--provider [PROVIDER]] [--tag [TAG]]

view:cache

Compile all of the application's Blade templates

php artisan view:cache

view:clear

Clear all compiled view files

php artisan view:clear