leicaflorian/pimp_my_crud 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

leicaflorian/pimp_my_crud

最新稳定版本:1.0.5

Composer 安装命令:

composer require leicaflorian/pimp_my_crud

包简介

Artisan commands for creating CRUD views and controller.

README 文档

README

Laravel artisan command for easily generating CRUD views and controller with all necessary code.

Installation

Install package via composer

composer require --dev "leicaflorian/pimp_my_crud"

Usage

Before using the command, you have to generate the necessary models and migrate the database because the command will use the database schema to generate the views and controller.

Views

php artisan pmc:views [options] [--] <resource>

Arguments

  • resource: Name of the resource, in lowercase, plural, e.g. "posts. This can be nested in a subfolder, e.g. "admin/posts"

Options

  • --only: Only create the specified views, separated by comma. Available values are "index", "edit", "create" and " show"
  • --wysiwyg: Add a wysiwyg editor to the edit and create views
  • --force: Overwrite existing views
  • --model: Manually specify the model name. [Default: resource name in PascalCase, singular]
php artisan pmc:views posts
php artisan pmc:views posts --only=index,edit
php artisan pmc:views posts --only=index,edit --force
php artisan pmc:views posts --wysiwyg --force
php artisan pmc:views language-lines --model=Language

Controller

php artisan pmc:controller [options] [--] <resource>

Arguments

  • resource: Name of the resource, in lowercase, plural, e.g. "posts. This can be nested in a subfolder, e.g. "admin/posts"

Options

  • --force: Overwrite existing controller
  • --model: Manually specify the model name. [Default: resource name in PascalCase, singular]
  • --controller: Manually specify the controller name. [Default: resource name in PascalCase, singular, ending with "Controller"]
php artisan pmc:controller posts
php artisan pmc:controller posts --force
php artisan pmc:controller language-lines --model=Language 
php artisan pmc:controller language-lines --controller=Language 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-17