承接 naisargparmar/data-table 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

naisargparmar/data-table

Composer 安装命令:

composer require naisargparmar/data-table

包简介

Data Table will allow you to easily create Listing, Searching, Sorting and Download CSV.

README 文档

README

Laravel Data Table will allow you to easily create Listing, Searching, Sorting and Download CSV for Laravel.

Install

composer require lakipatel/data-table

Add bellow lines in config/app.php under providers

Maatwebsite\Excel\ExcelServiceProvider::class,
Lakipatel\DataTable\DataTableServiceProvider::class

run this command to publish php artisan vendor:publish

CLI - Create Data Table Object

run this commnad to generate data table php artisan data-table:create

Above command will create a file under app/DataTables/ directory.

Change your controller like

namespace App\Http\Controllers;

use App\DataTables\UserDataTable;

class UsersController
{

    public function index()
    {
        $dataTableHTML = UserDataTable::toHTML();
        return view('users.index', compact('dataTableHTML'));
    }

}

Add bellow line where you want to display data table under resources/views/users/index.blade.php.

{!! $dataTableHTML !!}

Add bellow lines in your layout file to include assets

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<script src="{{ asset('vendor/data-table/data-table.js') }}"></script>
@stack('scripts')

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固