1常用命令

显示某个命令的帮助

php artisan -h make:controller

实例命令

php artisan make:controller -r Api/TestController
....

2所有命令大全

可用命令Available commands

命令					中文(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

示例

D:\root-php>php artisan clear-compiled
Compiled services and packages files removed!

app

命令					中文(English)
app:name 设置应用程序命名空间 Set the application namespace

示例

D:\root-php\api2.lvaistest.com>php artisan app:name Application
Application namespace set!
Compiled views cleared!
Application cache cleared!
Route cache cleared!
Configuration cache cleared!
Compiled services and packages files removed!
Caches cleared successfully!

auth

命令					中文(English)
auth:clear-resets 刷新过期的密码重置令牌 Flush expired password reset tokens

cache

命令					中文(English)
cache:clear 刷新应用程序缓存 Flush the application cache
cache:forget 从缓存中删除项目 Remove an item from the cache
cache:table 为缓存数据库表创建迁移 Create a migration for the cache database table

config

命令					中文(English)
config:cache 创建缓存文件以加快配置速度 Create a cache file for faster configuration loading
config:clear 删除配置缓存文件 Remove the configuration cache file

db

命令					中文(English)
db:seed 填充数据库 Seed the database with records

event

命令					中文(English)
event:generate 根据注册生成缺少的事件和侦听器 Generate the missing events and listeners based on registration

key

命令					中文(English)
key:generate 生成应用程序 key Set the application key

lang

命令					中文(English)
lang:publish 将语言文件发布到资源目录 publish language files to resources directory.

make

命令					中文(English)
make:auth 脚手架基本登录和注册视图和路线Scaffold basic login and registration views and routes
make:channel 创建一个新的 channel 类 Create a new channel class
make:command 创建一个新的 Artisan 命令 Create a new Artisan command
make:controller 创建一个新的控制器类 Create a new controller class
make:event 创建一个新的 event 类
make:exception 创建一个新的自定义异常类 Create a new custom exception class
make:factory 创建一个新的模型工厂 Create a new model factory
make:job 创建一个新的工作类 Create a new job class
make:listener 创建一个新的事件监听器类 Create a new event listener class
make:mail 创建一个新的电子邮件类 Create a new email class
make:middleware 创建一个新的中间件类 Create a new middleware class
make:migration 创建一个新的迁移文件 Create a new migration file
make:model 创建一个新的 Eloquent 模型类 Create a new Eloquent model class
make:notification 创建一个新的通知类 Create a new notification class
make:observer 创建一个新的观察者类 Create a new observer class
make:policy 创建一个新的策略类 Create a new policy class
make:provider 创建一个新的服务提供者类 Create a new service provider class
make:request 创建一个新的表单请求类 Create a new form request class
make:resource 创建一个新资源 Create a new resource
make:rule 创建新的验证规则 Create a new validation rule
make:seeder 创建一个新的 seeder 类 Create a new seeder class
make:test 创建一个新的测试类 Create a new test class

migrate

命令					中文(English)
migrate:fresh 删除所有表并重新运行所有迁移 Drop all tables and re-run all migrations
migrate:install 创建迁移存储库 Create the migration repository
migrate:refresh 重置并重新运行所有迁移 Reset and re-run all migrations
migrate:reset 回滚所有数据库迁移 Rollback all database migrations
migrate:rollback 回滚上次数据库迁移 Rollback the last database migration
migrate:status 显示每次迁移的状态 Show the status of each migration

notifications

命令					中文(English)
notifications:table 为通知表创建迁移 Create a migration for the notifications table

optimize

命令					中文(English)
optimize:clear 删除缓存的引导程序文件 Remove the cached bootstrap files

package

命令					中文(English)
package:discover 重建缓存的包清单 Rebuild the cached package manifest

queue

命令					中文(English)
queue:failed 列出所有 failed 队列工作 List all of the failed queue jobs
queue:failed-table 为 failed 队列工作数据库表创建迁移 Create a migration for the failed queue jobs database table
queue:flush 刷新所有 failed 队列工作 Flush all of the failed queue jobs
queue:forget 删除 failed 队列工作 Delete a failed queue job
queue:listen 监听一个给定的队列 Listen to a given queue
queue:restart 在当前工作之后重新启动队列工作器守护程序 Restart queue worker daemons after their current job
queue:retry 重试 failed 队列作业 Retry a failed queue job
queue:table 为队列工作数据库表创建迁移 Create a migration for the queue jobs database table
queue:work 开始将队列上的工作作为守护程序处理 Start processing jobs on the queue as a daemon

route

命令					中文(English)
route:cache 创建路由缓存文件以加快路由注册速度 Create a route cache file for faster route registration
route:clear 删除路由缓存文件 Remove the route cache file
route:list 列出所有注册的路由 List all registered routes

schedule

命令					中文(English)
schedule:run 运行预定的命令 Run the scheduled commands

session

命令					中文(English)
session:table 为会话数据库表创建迁移 Create a migration for the session database table

storage

命令					中文(English)
storage:link 创建从 “公共/存储”到“存储/应用/公共”的符号链接Create a symbolic link from "public/storage" to "storage/app/public"

vendor

命令					中文(English)
vendor:publish 从供应商包中发布任何可发布的资产 Publish any publishable assets from vendor packages

view

命令					中文(English)
view:cache 编译所有应用程序的 Blade 模板 Compile all of the application's Blade templates
view:clear 清除所有编译的视图文件 Clear all compiled view files

laravel aritisan命令大全的更多相关文章

  1. .NET Core dotnet 命令大全

    dotnet 命令大全,让你理解dotnet 命令. 本文将以一个实例串起 dotnet 所有命令,让你玩转dotnet 命令. 本篇文章编写环境为windows 10 ,dotnet 命令同样适用于 ...

  2. 【转】Hadoop命令大全

    Hadoop命令大全 本节比较全面的向大家介绍一下Hadoop命令,欢迎大家一起来学习,希望通过本节的介绍大家能够掌握一些常见Hadoop命令的使用方法.下面是Hadoop命令的详细介绍. 1.列出所 ...

  3. CMD命令大全

    有关某个命令的详细信息,请键入 HELP 命令名 ASSOC 显示或修改文件扩展名关联. AT 计划在计算机上运行的命令和程序. ATTRIB 显示或更改文件属性. BREAK 设置或清除扩展式 CT ...

  4. DOS命令大全!

    一)MD——建立子目录 1.功能:创建新的子目录 2.类型:内部命令 3.格式:MD[盘符:][路径名]〈子目录名〉 4.使用说明: (1)“盘符”:指定要建立子目录的磁盘驱动器字母,若省略,则为当前 ...

  5. 黑客攻击常用CMD命令大全

    黑客常用命令大全net user heibai lovechina /add 加一个heibai的用户密码为lovechina net localgroup Administrators heibai ...

  6. centos 命令大全

    文件操作: ls      ####查看目录中的文件#### ls -F       ####查看目录中的文件#### ls -l       ####显示文件和目录的详细资料#### ls -a   ...

  7. db2常用命令大全

    #显示这个DB2错误的解释信息(SQLSTATE 5位数字)db2 ? 42704 #显示这个SQLCODE的解释信息(SQLCODE 四位数字) db2 ? SQL0204N ##查看数据库指定配置 ...

  8. redis shell命令大全

    redis shell命令大全(转自http://blog.mkfree.com/posts/5105432f975ad0eb7d135964) 作者:oyhk   2013-1-28 3:11:35 ...

  9. linux 常用命令大全

    linux 常用命令大全 系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统 ...

随机推荐

  1. HDU5618 Jam's problem again CDQ分治

    Jam's problem again CDQ分治 传送门:http://acm.hdu.edu.cn/showproblem.php?pid=5618 题意: \[ 有n 个元素,第 i 个元素有 ...

  2. mysql find_in_set 与 in 的用法与区别,mysql范围搜索,mysql范围查询

    mysql find_in_set 与 in 的用法与区别 1.find_in_set 用于模糊查询,并且数据库中的值是用英文逗号分隔的: 例如: (1).去字段中查询 select find_in_ ...

  3. Struts2 基于XML校验(易百教程)

    以下是的各类字段级和非字段级验证在Struts2列表: date validator: <field name="birthday"> <field-valida ...

  4. CodeForces - 786B -- 线段树优化建图

    刚开始想了两个小时,打算把区间分块然后计算,但是这就很灵性了看了一个大佬的博客,侵删 #include<cstring> #include<iostream> #include ...

  5. JavaScript之DOM操作,事件操作,节点操作

    1,DOM操作 1.1  概念 所谓DOM,全称Document Object Model 文档对象模型,DOM是W3C(World Wide Web Consortuum )标准,同时也定义了访问诸 ...

  6. 别怕,"卷积"其实很简单(上)

    文章来自我的CSDN同名博客,欢迎文末扫码关注~   前言 相信很多时候,当我们在看到“卷积”时,总是处于一脸懵逼的状态,不但因为它的本身概念比较难理解,还因为它在不同的应用中发挥出的变幻莫测的作用也 ...

  7. 为你写诗:3 步搭建 Serverless AI 应用

    作者 | 杜万(倚贤) 阿里巴巴技术专家 本文整理自 1 月 2 日社群分享,每月 2 场高质量分享,点击加入社群. 关注"阿里巴巴云原生"公众号,回复关键词 0102 即可下载本 ...

  8. 高阶函数HOF和高阶组件HOC(Higher Order Func/Comp)

    一.什么是高阶函数(组件),作用是什么? 子类使用父类的方法可以通过继承的方式实现,那无关联组件通信(redux).父类使用子类方法(反向继承)呢 为了解决类(函数)功能交叉/功能复用等问题,通过传入 ...

  9. Linux磁盘管理之LVM逻辑卷快照

    一.快照的工作原理 所谓快照就是将当时的系统数据记录下来,在未来若有数据变动,则会将变更前的数据放入快照区进行保存.我们可理解为快照就是给系统拍了一张照片,记录当时系统在拍快照的状态.只不过现实生活中 ...

  10. cesium加载WFS服务(GeoServer发布)

    需求: 为了便于前端渲染数据,自定义图层渲染. 思路: 获取地图服务中的要素进行渲染. 工具: GeoServer 2.6.4,cesium, 思路有了就开始找资料写代码,cesium有接口可以加载W ...