Laravel Artisan 命令大全

命令    中文    English
clear-compiled    删除已编译的类文件    Remove the compiled class file
down    将应用程序置于维护模式    Put the application into maintenance mode
dump-server    启动转储服务器以收集转储信息。    Start the dump server to collect dump information.
env    显示当前的框架环境    Display the current framework environment
help    显示命令的帮助    Displays help for a command
inspire    ---    Display an inspiring quote
list    列出命令    Lists commands
migrate    运行数据库迁移    Run the database migrations
optimize    缓存框架引导程序文件    Cache the framework bootstrap files
preset    为应用程序交换前端脚手架    Swap the front-end scaffolding for the application
serve    在 PHP 开发服务器上提供应用程序    Serve the application on the PHP development server
tinker    与您的应用程序互动    Interact with your application
up    使应用程序退出维护模式    Bring the application out of maintenance mode

 创建新的数据表

php artisan make:migration create_bbs_comment_table --create bbs_comment

执行新的migration

php artisan migrate

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章