Giter Club home page Giter Club logo

laravel-strongstub's Introduction

Larevel-StrongStub

在十秒内创建完成 CURD 增删改查的逻辑。

安装

composer require --prefer-dist openstrong/laravel-strongstub

使用示例

创建一个包含验证规则的 Eloquent Model 模型

php artisan strongstub:model Models/StrongadminUser -t strongadmin_user -c mysql

参数说明:
-t          表名称
-c          数据库连接名称,默认为 mysql,(config/database.php)
--force     是否强制覆盖

创建一个 CURD(增删改查)controller class

php artisan strongstub:curd Strongadmin/TestAdminUserController -m App\\Models\\StrongadminUser -e App\\Http\\Controllers\\Controller

参数说明:
-m          Eloquent Model 模型
-e          要继承的 controller 控制器,默认缺省值:"App\Http\Controllers\Controller"
--force     是否强制覆盖
--view      是否创建 laravel-strongadmin 视图文件,如果是,则 -e 参数值被强制设置为 OpenStrong\StrongAdmin\Http\Controllers\BaseController

创建 api 接口 markdown 文档

php artisan strongstub:wiki Strongadmin/TestAdminUserController -m App\\Models\\StrongadminUser --force

参数说明:
-m          Eloquent Model 模型
--force     是否强制覆盖

创建 laravel-strongadmin 视图文件,这里推荐 使用 https://gitee.com/openstrong/laravel-strongadmin 扩展应用:在1分钟内构建一个功能齐全的管理后台。

php artisan strongstub:view strongadmin/testAdminUser -t strongadmin_user

参数说明:
-t          表名称
--force     是否强制覆盖

使用此扩展包的开源项目

StrongShop 开源跨境商城 https://gitee.com/openstrong/strongshop

QQ群:557655631

laravel-strongstub's People

Watchers

OpenStrong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.