iescarro/lara 问题修复 & 功能扩展

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

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

iescarro/lara

最新稳定版本:v0.0.14

Composer 安装命令:

composer require iescarro/lara

包简介

Simple Laravel Scaffold

README 文档

README

Lara is a PHP console application designed to simplify the creation of scaffolding components in Laravel, inspired by the Rails generate command. Currently, it supports generating scaffold components.

Installation

To install Lara, you can use Composer. Add the package to your composer.json file or run the following command:

composer require iescarro/lara

Usage

Lara can be used to generate scaffold components in your Laravel application. The basic syntax for generating a scaffold is:

php vendor/iescarro/lara/lara generate scaffold <ModelName> <field1:type> <field2:type> ...

Example

To generate a scaffold for a Post model with title as a string and content as text, you would run the following command:

php vendor/iescarro/lara/lara generate scaffold Post title:string content:text

This command will generate the necessary files and code for the Post model, including:

  • Migration
  • Model
  • Controller
  • Request
  • Routes
  • Views

Generated Components

  • Migration: A new migration file for the model with the specified fields.
  • Model: A new Eloquent model file.
  • Controller: A new resource controller for the model.
  • Request: A new form request validation class.
  • Routes: Updates to the web.php file with the necessary routes.
  • Views: Basic views for creating, updating, and listing the model.

Contributing

We welcome contributions to improve Lara. If you would like to contribute, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

For any questions or support, please open an issue on GitHub or contact us.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-07-08