定制 mdsatu/switcher 二次开发

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

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

mdsatu/switcher

最新稳定版本:1.5

Composer 安装命令:

composer require mdsatu/switcher

包简介

Laravel database table status switcher

README 文档

README

Switcher is used to easily switch database column status value of a specific table.

GitHub license, GitHub issues

Requirements

  • PHP 5.4 or above
  • Laravel 5.5 or above

Steps:

Install

Composer

Run the following to include this package via Composer

composer require mdsatu/switcher

Once download is complete, the next thing you have to do is include the service provider within config/app.php.

'providers' => [
        DWK\Switcher\SwitcherServiceProvider::class,
];

Then run php artisan vendor:publish --provider="DWK\Switcher\SwitcherServiceProvider" to get the config of Switcher.

Configuration

Setup default application switcher in switcher.php config. (Optional but recommended)

Available options:

Option Description
default_column Here you may specify the default column name.
loader Here you may specify loader animation (Optional).

Usage

Once configuration is complete you can add this code inside the body tag to activate the "Switcher".

@include('switcher::code')

Now put this code where you want to preview the "Switch"

@include('switcher::switch', [
    'table' => 'users',
    'data' => $query_data,
    'column' => 'status', // Optional
    'id' => 1 // Optional
])

Example

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    <body>
        @include('switcher::switch', [
            'table' => 'users',
            'data' => $query_data
        ])
    </body>
    </html>

Maintainers

This package is maintained by MD Satu and you!

License

This package is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固