承接 morganrowse/laravelcrud 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

morganrowse/laravelcrud

Composer 安装命令:

composer require morganrowse/laravelcrud

包简介

Artisan command to generate routing, views and controllers from a database table

README 文档

README

Downloads Version Travis Codacy grade

This composer package adds artisan commands which create Models, Views, Controllers and Request Validation for crud operation based off of a database table schema.

Installation

Subheader Image

First add the package via composer

$ composer require morganrowse/laravelcrud dev-master

Use dev-master as I currently don't push tags

Usage

Subheader Image

First have your database setup as desired following laravel naming convention (such as a table called posts).

Next run the command via artisan

$ php artisan make:crud posts

This will create:

app
│   Post.php
└───Http
│   └───Controllers
│   │   │   PostController.php
│   |   └───View
│   │   │   |   PostController.php
│   └───Requests
│   │   └───Post
│   │   │   │   DestroyPost.php
│   │   │   │   StorePost.php
│   │   │   │   UpdatePost.php
│   └───Resources
│   │   │   PostResource.php
resources
└───views
│   └───posts
│   │   │   create.blade.php
│   │   │   edit.blade.php
│   │   │   index.blade.php
│   │   │   show.blade.php

Now add the view routes to your web.php

...
Route::resource('posts','View\\PostController');
...

Finally add the api routes to your api.php

...
Route::apiResource('posts','PostController');
...

Subheader Image

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固