定制 gv3n/laravel_crud_template_generator 二次开发

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

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

gv3n/laravel_crud_template_generator

Composer 安装命令:

composer require gv3n/laravel_crud_template_generator

包简介

A Laravel package to generate CRUD operations based on templates

README 文档

README

Total Downloads Latest Stable Version License

A Laravel package to generate CRUD operations based on templates. Initially created for my personal use, it is now available for anyone to use and fork. Feel free to customize it to suit your needs and share your version with me. Contact me with any suggestions for improvements or to report any issues.

Installation

You can install the package via Composer:

composer require gv3n/laravel_crud_template_generator

Requirements

  • PHP ^8.0
  • Laravel Support ^11.0

Usage

To use the CRUD template generator, follow these steps:

Run the following Artisan command:

php artisan make:crud {ModelName}

Replace {ModelName} with the name of your model.

This command will generate the following files using stub templates:

  • Controller: Http/Controllers/{ModelName}Controller.php
  • Model: Models/{ModelName}.php
  • Views:
    • views/{ModelName}/index.blade.php
    • views/{ModelName}/create.blade.php
    • views/{ModelName}/edit.blade.php
    • views/{ModelName}/show.blade.php

Additionally, the web.php route file will be updated with the following resource route:

Route::resource("{ModelName}", '{ModelName}Controller');

By following these steps, you will have a skeleton for a functional CRUD interface for your model.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request on GitHub.

License

This package is open-sourced software licensed under the MIT license.

Author

  • Gv3N

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固