zoukankan      html  css  js  c++  java
  • laravel-artisan命令

    1 查看版本信息
    php artisan --version
    OR vim vendor/laravel/framework/src/Illuminate/Foundation/Application.php
     
    生成模型:
    php artisan make:model -m Models/Post
    创建Tag模型同时生成tags数据库迁移:
    php artisan make:model Models/Tag --migration
    创建模型工厂文件:
    php artisan make:factory PostFactory --model=Models/Post
    创建新的填充类文件:
    php artisan make:seeder PostsTableSeeder
    创建控制器:
    php artisan make:controller BlogController
    创建控制器并生成路由:
    php artisan make:controller Admin/TagController --resource
     
    laravel 清除缓存命令操作
    清除编译缓存 php artisan clear-compiled
    清除数据缓存 php artisan cache:clear
    清除配置缓存 php artisan config:clear
    清除路由缓存 php artisan route:clear
     
    生成队列表:
    php artisan queue:table
    php artisan migrate
     
    数据迁移指令
    生成迁移文件,
    创建标签tag与文章post多对多关系:
    php artisan make:migration create_post_tag_pivot --create=post_tag_pivot
    创建请求类:
    php artisan make:request TagCreateRequest
    创建目录软连接:
    php artisan storage:link
    创建邮箱类:
    php artisan make:mail TestMail
     
    运行数据库迁移指令:
    php artisan migrate
    数据库填充命令:
    php artisan db:seed
     

  • 相关阅读:
    tasker支持的shell 命令大全
    crx 文件安装 如何安装 Chrome插件
    python mac地址计算
    Java线程池
    springMVC请求过程
    java中特殊的String类型
    单例模式和多例模式
    hash算法学习
    arraylist和linkedlist的简单比较
    乐观锁和悲观锁
  • 原文地址:https://www.cnblogs.com/sien6/p/13781631.html
Copyright © 2011-2022 走看看