承接 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.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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