pkeogan/laravel-datatables
Composer 安装命令:
composer require pkeogan/laravel-datatables
包简介
A Package to Intergrate Datatables into Laravels 5.5 Blade Template System
关键字:
README 文档
README
This Laravel Package is made to fully intergrate AdminLTE into Blade templating. The goal will to be able to use blade directive calls in order to populate and create pages, boxes, alerts etc.
Getting Started
This project is not done yet, but if you would like to check it out, or follow along, follow the instructions below to get started.
Prerequisites
What you need running on you dev, or local server.
Laravel 5.5
PHP 7.0^
Installing
Install AdminLTE via Composer
composer require almasaeed2010/AdminLTE
Install Laravel-AdminLTE via Composer
composer require pkeogan/laravel-adminlte dev-master
Update Composer
composer update
Move some AdminLTE file to Resources (So we can edit then complie)
cp -a vendor/almasaeed2010/adminlte/build/. resources/assets/adminlte/build
cp -a vendor/almasaeed2010/adminlte/bower_components/. resources/assets/adminlte/bower_components
cp -a vendor/almasaeed2010/adminlte/dist/. resources/assets/adminlte/dist
cp -a vendor/almasaeed2010/adminlte/plugins/. resources/assets/adminlte/plugins
cp -a vendor/almasaeed2010/adminlte/dist/img/. resources/assets/img/
cp -a vendor/almasaeed2010/adminlte/dist/js/. resources/assets/js/adminlte
cp -a vendor/almasaeed2010/adminlte/plugins/. resources/assets/plugins
sudo sed -i 's/DocumentRoot\ \/home\/ubuntu\/workspace/DocumentRoot\ \/home\/ubuntu\/workspace\/public/g' /resources/assets/less/AdminLTE.less
Add the service provider
/config/app.php
'providers' => [
...
Pkeogan\LaravelAdminLTE\LaravelAdminLTEServiceProvider::class,
...
Add the Webpack Mix, copy and insert from /vendor/pkeogan/laravel-admintle/webpack.mix.js
/webpack.mix.js
mix.sass(blah blah),
.less(more stuff),
(copy and paste here)
.js(blah, blah);
(Still writing this install)
Useage
In the future I will have every option in here, and also a demo page with the code to call.
In any blade.php file, you can call a compontent such as below.
@component('adminlte::callout', ['type' => 'danger', 'title' => 'This is a Danger Callout'])
@slot('message')
You cannot close this message.
@endslot
@endcomponent
Buttons
@include('adminlte::button', ['link' => route('backend.auth.user.deactivated'),
'label' => 'Deactivated',
'style' => 'success',
'uriPattern' => 'URI For Active Class',
'tooltip' => 'This is a tooltip'])
Modal
@include('adminlte::modal', ['buttonIcon' => 'fa fa-id-card-o ',
'modalID' => ('loginas'.$user->id),
'modalHeader' => 'Login As '.$user->full_name,
'modalSubmit' => 'Login As '.$user->full_name,
'modalBody' => 'Are you sure you want to login as this user?',
'submitLink' => route('backend.auth.user.login-as', $user)])
Versioning
Not ready yet, I will be in 0.1-dev for some time.
Authors
- Peter Keogan - inital release - Pkeogan
Acknowledgments
- almasaeed2010 for the great AdminLTE theme!
- Anyone who contributes to Laravel!
- anyone who elses code was used
pkeogan/laravel-datatables 适用场景与选型建议
pkeogan/laravel-datatables 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 104 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 07 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「datatables」 「blade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pkeogan/laravel-datatables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pkeogan/laravel-datatables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pkeogan/laravel-datatables 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.
Laravel DataTables plugin to support Mongodb
Plug-ins for DataTables
Vanilla Components Integration with Laravel
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
This is a laravel 4 package for the server and client side of datatables at http://datatables.net/
统计信息
- 总下载量: 104
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-23