当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

laravel-datatables

jQuery DataTables API for Laravel 4|5|6|7|8
授权协议 MIT License
开发语言 PHP
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 郎星汉
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

jQuery DataTables API for Laravel 4|5|6|7|8

Build Status

This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection.

return datatables()->of(User::query())->toJson();
return datatables()->of(DB::table('users'))->toJson();
return datatables()->of(User::all())->toJson();

return datatables()->eloquent(User::query())->toJson();
return datatables()->query(DB::table('users'))->toJson();
return datatables()->collection(User::all())->toJson();

return datatables(User::query())->toJson();
return datatables(DB::table('users'))->toJson();
return datatables(User::all())->toJson();

Requirements

Documentations

NOTE: Documentation links below are currently offline.

Laravel Version Compatibility

Laravel Package
4.2.x 3.x
5.0.x 6.x
5.1.x 6.x
5.2.x 6.x
5.3.x 6.x
5.4.x 7.x, 8.x
5.5.x 8.x
5.6.x 8.x
5.7.x 8.x
5.8.x 9.x
6.x.x 9.x
7.x.x 9.x
8.x.x 9.x

DataTables 8.x Upgrade Guide

There are breaking changes since DataTables v8.x.If you are upgrading from v7.x to v8.x, please see upgrade guide.

Quick Installation

$ composer require yajra/laravel-datatables-oracle:"~9.0"

Service Provider & Facade (Optional on Laravel 5.5+)

Register provider and facade on your config/app.php file.

'providers' => [
    ...,
    Yajra\DataTables\DataTablesServiceProvider::class,
]

'aliases' => [
    ...,
    'DataTables' => Yajra\DataTables\Facades\DataTables::class,
]

Configuration (Optional)

$ php artisan vendor:publish --provider="Yajra\DataTables\DataTablesServiceProvider"

And that's it! Start building out some awesome DataTables!

Debugging Mode

To enable debugging mode, just set APP_DEBUG=true and the package will include the queries and inputs used when processing the table.

IMPORTANT: Please make sure that APP_DEBUG is set to false when your app is on production.

PHP ARTISAN SERVE BUG

Please avoid using php artisan serve when developing with the package.There are known bugs when using this where Laravel randomly returns a redirect and 401 (Unauthorized) if the route requires authentication and a 404 NotFoundHttpException on valid routes.

It is advised to use Homestead or Valet when working with the package.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

  • Datatable中文网手册地址:http://datatables.club Laravel----视图层,直接上代码 $(document).ready(function () { $('#table_id_example').DataTable({ serverSide: true, lengthMenu: [7, 14, 20

 相关资料
  • 本文向大家介绍如何修复和保护Linux服务器免受CentOS 5/6/7或RHEL 5/6/7上的脏COW漏洞的侵害,包括了如何修复和保护Linux服务器免受CentOS 5/6/7或RHEL 5/6/7上的脏COW漏洞的侵害的使用技巧和注意事项,需要的朋友参考一下 在本文中,我们将学习如何修复Dirty Cow Linux漏洞CentOS / Red Hat,Dirty Cow Linux漏洞已

  • Laravel 系列入门教程 如果你想下载我的代码到本地运行,下载完成后记得运行 composer update 命令呦~ 环境要求 PHP 7.0.0 以上 此为代码示例,教程地址: 2017 版 Laravel 系列入门教程(一)【最适合中国人的 Laravel 教程】 2017 版 Laravel 系列入门教程(二)【最适合中国人的 Laravel 教程】 2017 版 Laravel 系列

  • 我正在尝试从laravel 7升级到8的错误,我得到了错误 无法将您的需求解析为一组可安装的软件包。 问题1 使用选项--with-all-dependencies(-w)允许对当前锁定到特定版本的包进行升级、降级和删除。 我的作曲家 什么是错误,我如何修复它?

  • Laravel 6 Ajax CRUD Tutorial You can follow step by step tutorial for Laravel 6 Ajax CRUD: https://itsolutionstuff.com/post/laravel-6-ajax-crud-tutorialexample.html

  • 问题内容: 我正在尝试将文件夹移动到其他地方。但是,我找不到修改变量的地方。现在,“ public_path()”返回错误的文件夹路径。 在哪里可以设置变量? 问题答案: 您可以使用ioc容器覆盖公共路径: 完美地为我工作的是增加了以下三行:

  • Laravel 5 语言包,包含37种语言, 基于 Laravel4-lang. 安装 composer require "overtrue/laravel-lang:dev-master" 或者添加下面一行到你的项目 composer.json 中 require 部分: "require": { "overtrue/laravel-lang": "dev-master" } 然后 compos

  • 总体差异 想装回过去的一些工具 安装:yum install -y tree net-tools bind-utils tree sysstat vim-en* lrzsz NetworkManager-tui ntp ntpdate iftop tcpdump telnet traceroute 查看版本号/主机名 cat /etc/redhat-release cat /etc/hostnam

  • 笔试分为选择题(单选和多选)和编程题(2) 选择题知识点:虚函数特性,自旋锁特性,哈夫曼树,子网掩码与主机数,基类与继承类 编程题: 1、给定数组降序排序输出前百分之三十中的最小数 思路:我用了冒泡排序直接求数组数×0.3-1 的下标元素 2、求一组 ipv4 网址的最大子网掩码中 1 的个数 这个完全没思路,计网看得少,对于二进制的操作也不会😔😔😔 #实习笔试# #CVTE# #C++暑期