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
     

  • 相关阅读:
    1.两数之和
    [Udemy] ES 7 and Elastic Stack
    [Udemy] ES 7 and Elastic Stack
    Common Linux Commands 日常工作常用Linux命令
    ELK 学习
    web 3d 技术预研及数据可视化技术
    AWS Cloud Practioner 官方课程笔记
    怎么用 pytorch 查看 GPU 信息
    ECG 项目预研
    怎么查看keras 或者 tensorflow 正在使用的GPU
  • 原文地址:https://www.cnblogs.com/sien6/p/13781631.html
Copyright © 2011-2022 走看看