定制 mmartinjoo/junior 二次开发

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

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

mmartinjoo/junior

最新稳定版本:0.1.4

Composer 安装命令:

composer require mmartinjoo/junior

包简介

Junior is a Laravel artisan command that writes code for you

README 文档

README

Junior is a Laravel artisan command that writes code for you

  1. Install the package as a dev dependency:
composer require mmartinjoo/junior --dev
  1. Publish the configuration file:
php artisan vendor:publish --provider="Mmartinjoo\Junior\JuniorServiceProvider"
  1. Register at Junior.dev
  2. Create an API key
  3. Add the API key to your .env file:
JUNIOR_API_KEY=your-api-key

Usage

Junior can generate you basic CRUD code, including:

  • Models
  • Factories
  • Migrations
  • Controllers
  • Resources
  • Requests
  • Tests

You need to run the following command:

php artisan junior make:crud

If you only need a model with migrations and factories, you can run:

php artisan junior make:model

If you only need a factory for an existing model, you can run:

php artisan junior make:factory

Junior will create the new files in the standard Laravel folders such as app/Models/MyModel.php or app/Http/Controllers/MyController.php. At the moment, it doesn't work with custom structures, so you need to manually move the generated files.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固