marabesi/easy-crud

此包的最新版本(1.1.0)没有可用的许可信息。

(Laravel 5+) 从您的模型或数据库生成 CRUD 的简单有效方法 编辑

安装: 73

依赖: 0

建议者: 0

安全: 0

星标: 28

关注者: 3

分支: 2

语言:CSS

1.1.0 2017-09-22 14:03 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:35:26 UTC


README

Codacy Badge Build Status Latest Stable Version Total Downloads Latest Unstable Version License composer.lock HitCount

(Laravel 5+) 从您的模型或数据库生成 CRUD 的简单有效方法

版本兼容性

您能做什么?

  • 从 Laravel 模型生成 CRUD
  • 从数据库表生成 CRUD(尚未准备就绪)

由 Gentelella 主题提供支持

Gentelella Bootstrap Admin Template

功能

  • 友好的管理员来管理您的数据(CRUD)
  • 防止与定义的路由冲突
  • 美丽的管理员模板

安装

composer require marabesi/easy-crud

更新服务提供者列表

'providers' => [
    EasyCrud\Providers\EasyCrud::class,
]

将供应商资源发布到您当前项目

artisan vendor:publish

现在,您应该在配置文件夹中有一个名为 easy-crud.php 的文件,打开它并根据需要进行编辑。

<?php

return [
    /**
     * All models that should have a CRUD. The key of the element will
     * appear as the menu label in the admin area
     */
    'models' => [
        'Users' => \App\User::class
    ],

    /**
     * URL that should be used to access the gentella admin
     * where you can manage all models that have CRUD
     */
    'url_base' => '/admin',

    /**
     * You might want to have some validation before accessing
     * the gentela admin, to achieve that, just inform the middleware 
     * class name in the array. It will go through each middleware declared 
     * below.
     */
    'middlewares' => [
    ]
];

models 数组中添加您希望在管理员中看到的所有模型,键应该是标签名称。它将显示在管理员区域中。

更多信息

https://marabesi.com/php/2017/09/21/easy-crud.html