定制 jhousyfran/voyager-bread-generator 二次开发

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

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

jhousyfran/voyager-bread-generator

最新稳定版本:1.0.0

Composer 安装命令:

composer require jhousyfran/voyager-bread-generator

包简介

Create BREAD from the console using artisan

README 文档

README

There is a common issue when we try to deploy local projects to a different environment. Currently, we need to export the database or so, in order to keep all the new BREADs structure across all the environments.

The only way to do that without having to create a database import each time is by creating the migrations, seeds, etc. for each bread.

This allows the developers to create new BREADs from the command line using Artisan.

How to use:

create a new bread

php artisan voyager:bread books

You can also generate the model and migration files

php artisan voyager:bread books --migration --model

Configure the bread

This command will create a new BooksBreadSeeder file with the basic configuration for a new bread-seed, there you can add/edit all the bread fields. See DataRowsTableSeeder

Once the seeder is done you need to run:

php artisan db:seed --class=BooksBreadSeeder

Optionally you need to re-generate the permissions from the command line

php artisan db:seed --class=PermissionRoleTableSeeder

You can also do this manually from the admin panel

Don't forget to run the new migration

php artisan migrate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固