Laravel之artisan命令总结

来源:转载

Laravel Framework 5.5.29
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quietDo not output any message
-V, --versionDisplay this application version
--ansi Force ANSI output
--no-ansiDisable ANSI output
-n, --no-interactionDo not ask any interactive question
--env[=ENV]The environment the command should run under
-v|vv|vvv, --verboseIncrease the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
clear-compiledRemove the compiled class file
down Put the application into maintenance mode
envDisplay the current framework environment
help Displays help for a command
inspireDisplay an inspiring quote
list Lists commands
migrateRun the database migrations
optimizeOptimize the framework for better performance (deprecated)
preset Swap the front-end scaffolding for the application
serveServe the application on the PHP development server
tinker Interact with your application
up Bring the application out of maintenance mode
app
app:nameSet the application namespace
auth
auth:clear-resetsFlush expired password reset tokens
cache
cache:clear Flush the application cache
cache:forgetRemove an item from the cache
cache:table Create a migration for the cache database table
config
config:cacheCreate a cache file for faster configuration loading
config:clearRemove the configuration cache file
db
db:seedSeed the database with records
event
event:generateGenerate the missing events and listeners based on registration
key
key:generateSet the application key
make
make:auth Scaffold basic login and registration views and routes
make:commandCreate a new Artisan command
make:controllerCreate a new controller class
make:eventCreate a new event class
make:exceptionCreate a new custom exception class
make:factoryCreate a new model factory
make:jobCreate a new job class
make:listener Create a new event listener class
make:mail Create a new email class
make:middlewareCreate a new middleware class
make:migrationCreate a new migration file
make:modelCreate a new Eloquent model class
make:notificationCreate a new notification class
make:policy Create a new policy class
make:provider Create a new service provider class
make:requestCreate a new form request class
make:resource Create a new resource
make:rule Create a new validation rule
make:seeder Create a new seeder class
make:test Create a new test class
migrate
migrate:fresh Drop all tables and re-run all migrations
migrate:installCreate the migration repository
migrate:refreshReset and re-run all migrations
migrate:reset Rollback all database migrations
migrate:rollback Rollback the last database migration
migrate:statusShow the status of each migration
notifications
notifications:tableCreate a migration for the notifications table
package
package:discover Rebuild the cached package manifest
queue
queue:failedList all of the failed queue jobs
queue:failed-table Create a migration for the failed queue jobs database table
queue:flush Flush all of the failed queue jobs
queue:forgetDelete a failed queue job
queue:listenListen to a given queue
queue:restart Restart queue worker daemons after their current job
queue:retry Retry a failed queue job
queue:table Create a migration for the queue jobs database table
queue:workStart processing jobs on the queue as a daemon
route
route:cache Create a route cache file for faster route registration
route:clear Remove the route cache file
route:listList all registered routes
schedule
schedule:runRun the scheduled commands
session
session:table Create a migration for the session database table
storage
storage:linkCreate a symbolic link from "public/storage" to "storage/app/public"
vendor
vendor:publishPublish any publishable assets from vendor packages
view
view:clearClear all compiled view files

分享给朋友:
您可能感兴趣的文章:
随机阅读:
栏目列表
推荐内容