ckhandla94/backpack-import 问题修复 & 功能扩展

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

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

ckhandla94/backpack-import

最新稳定版本:1.0

Composer 安装命令:

composer require ckhandla94/backpack-import

包简介

README 文档

README

Install

  1. This package assumes you've already installed Backpack for Laravel. If you haven't, please install Backpack first.

  2. In your terminal:

composer require ckhandla94/backpack-import
  1. Run its migrations. Most likely it's:
php artisan migrate

Usage in your controller

Here's a simple example to use in your controller:

...
class ExampleCrudController extends CrudController
{
    ...
    use \BackpackImport\ImportOperation;

    public function importValidationRules()
    {
        return [
            'category_id' => 'required|exists:categories,id',
            'name'        => 'required|max:255',
            'duration'    => 'nullable|numeric',
            'price'       => 'nullable|numeric',
            'image'       => 'nullable',
            'description' => 'nullable|max:5000',
            'status'      => 'required',
        ];
    }
    ....

Preview

Import button in List page

Screenshot-3

Import page or Download sample file

Screenshot-1

Preview of the uploaded file and Maping with database

Screenshot-3

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 4
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-22