定制 adrosoftware/notitia-visum 二次开发

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

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

adrosoftware/notitia-visum

Composer 安装命令:

composer require adrosoftware/notitia-visum

包简介

BREAD (browse, read, edit, add, delete) generator for Laravel

README 文档

README

Build status Coverage Status Latest Stable Version License

This is a WIP package. Bread

Notitia Visum is a BREAD (browse, read, edit, add, delete) generator for Laravel

Usage

Brows usage:

/**
 * Inside a controller action
 */
return (new NotitiaVisum())
    ->table('users')
    ->browse();

You can add a raw where like this:

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse();

If you want to filter the fields to render in the table, you can add an array of fields:

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse(['id', 'first_name', 'role']);

By default the title on the table is the table name on the database but you can override it like this:

return (new NotitiaVisum())
    ->table('users')
    ->title('System Users')
    ->browse(['id', 'first_name', 'role']);

Tests

$ vendor/bin/phpunit

Authors

Adro Rocker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固