定制 sayeed/crud-from-db 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sayeed/crud-from-db

Composer 安装命令:

composer require sayeed/crud-from-db

包简介

Crud Generator From Database Schema

README 文档

README

Laravel CRUD generator will help you to generate CRUD direct from database schema.

Installation

You can install the package via composer:

composer require sayeed/crud-from-db

Laravel 5.5 and above

The package will automatically register itself, so you can start using it immediately.

Laravel 5.4 and older

In Laravel version 5.4 and older, you have to add your new provider to the providers array of config/app.php:

'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,
    Sayeed\CrudFromDb\CrudFromDbServiceProvider::class,
];

Add two class aliases to the aliases array of config/app.php

'aliases' => [
    // ...
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
];

Usage

After installing the package, you will now see a new php artisan crud:custom command.

CRUD using specific model name

You can generate CRUD from a specific table using table model name:

php artisan crud:custom -m article

Alternatively, you can use the longform version:

php artisan crud:custom --model=article

CRUD useing specific connection name

You can generate CRUD from specific database connection, default connection mysql:

php artisan crud:custom -c mysql

Alternatively, you can use the longform version:

php artisan crud:custom --connection=mysql

CRUD with auth middleware

You can generate CRUD with auth middleware:

php artisan crud:custom -a

Alternatively, you can use the longform version:

php artisan crud:custom --auth

CRUD with forcefully overwrite

You can generate CRUD with forcefully overwritten existing file:

php artisan crud:custom -f

Alternatively, you can use the longform version:

php artisan crud:custom --force

CRUD skip some table

You can generate CRUD without some specific table:

php artisan crud:custom -s table1,table2

Alternatively, you can use the longform version:

php artisan crud:custom --skip=table1,table2

You can pass here table name or model name

CRUD help

CRUD help:

php artisan crud:custom -h

Alternatively, you can use the longform version:

php artisan crud:custom --help

Credits

Thank you for using it.

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固