承接 mahabub/laravel-crud-and-repository-generator 相关项目开发

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

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

mahabub/laravel-crud-and-repository-generator

最新稳定版本:v3.1.0

Composer 安装命令:

composer require mahabub/laravel-crud-and-repository-generator

包简介

laravel crud generator with repository pattern

README 文档

README

Installation

composer require mahabub/laravel-crud-and-repository-generator

Features

  • Controller
  • Model
  • Migration
  • Requests
  • Routes
  • Repository pattern
  • views

Configuration

Publish The Resources File
php artisan vendor:publish --tag=resources
Publish The Config File
php artisan vendor:publish --tag=crud-generator

Then go to config/crud-generator.php and configur laravel version

Usage

If what want to generate without folder. Just run the below command.

php artisan crud:make ModelName 

If what want to generate with Repository Patter without folder. Just run the below command.

php artisan crud:make ModelName --rep

If what want to generate in folder. Just run the below command.

php artisan crud:make FolderName/ModelName;

If what want to generate in folder with Repository Pattern. Just run the below command.

php artisan crud:make FolderName/ModelName --rep;

If what want to generate in folder without Repository Pattern. Just run the below command.

php artisan crud:make FolderName/ModelName ;

Usage Route In Web.php below Laravel 8

Route::resource('photos', 'PhotoController');

Or Route In Web.php for Laravel 8

Just Import The Class

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-06