luisozparr/adminlte_laravel_components
Composer 安装命令:
composer require luisozparr/adminlte_laravel_components
包简介
This package contain multiple components for jeroennoten/laravel-adminlte
README 文档
README
This package provided some laravel components using AdminLTE template https://adminlte.io/ to use this template in laravel, this package require of jeroennoten/laravel-adminlte
Install
-
Require the package using composer:
luisozparr/adminlte_laravel_components -
Add the service provider to the providers in config/app.php:
Ozparr\AdminlteComponents\AdminlteComponentServiceProvider::class JeroenNoten\LaravelAdminLte\ServiceProvider::class, -
Publish the public assets of
jeroennoten/laravel-adminlte:php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets
Usage
Note: if you want use layout of AdminLTE we recommend read about usage of jeroennoten/laravel-adminlte https://github.com/jeroennoten/Laravel-AdminLTE#3-usage
You can use this components in the following way:
Callout
- Parameters:
iconstring (default 'fas fa-info')titlestringcol(Like col-md-*)
- Slots:
body(or slot)
- Example:
<x-callout col="12" class="callout-info" title="Importante">
Hola mundo :D
</x-callout>
Card
- Parameters:
titlestring (default '')
- Slots:
body(or slot)toolsfooteractionbar
- Example:
<x-card title="Card" class="collapsed-card card-primary">
<x-slot name="tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-plus"></i></button>
<button type="button" class="btn btn-tool" data-card-widget="remove"><i class="fas fa-times"></i></button>
</x-slot>
This is the body :D
<x-slot name="footer">
<div class="pull-right">
<button type="submit" class="btn btn-primary" >Success</button>
</div>
</x-slot>
</x-card>
Form
form
- Parameters:
methodstring
- Example:
<x-form.index :action="route('lotes.create')" method="GET">
Form body :D
</x-form.index>
input
- Parameters:
namenull|string (default null)iconstring|null (default null)iconPositionstring(left/right) (default left)
- Example:
<x-form.input icon="fas fa-barcode" name="example" id="example_id">
This is a label
</x-form.input>
select
- Slot:
options
- Example:
<x-form.select name="proveedor_id">
This is a label
<x-slot name="options">
@foreach($items as $item)
<option value="{!! $item->id !!}">Option :D </option>
@endforeach
</x-slot>
</x-form.select>
textarea
- Parameters:
namestring
<x-form.textarea name="description">
Description
</x-form.textarea>
Dropdown
- Parameters:
titlestring
- slot:
options
- Example:
<x-dropdown title="Options">
<a class="dropdown-item" href="#">
<i class="fas fa-edit"></i>
Edit
</a>
<a class="dropdown-item" href="#">
<i class="fas fa-trash-alt"></i>
Delete
</a>
</x-dropdown>
infoBox
- Parameters:
iconColornull|string (default null)iconnull|string icon (default null)numbernull|string number (default null)
- Example:
<x-infoBox title="Vendidos" icon="fas fa-boxes" number="5"/>
Modal
- Parameters:
sizeModalnull|string (default null)titlestring (default '')
- Slots:
footer
- Example:
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
modal open
</button>
<x-modal.index 'title'=>'Modal' id="myModal" size-modal="modal-xl">
Hello world
<x-footer>
<button type="submit" class="btn btn-primary" >Success</button>
</x-footer>
</x-modal.index>
Tabs
- Slots:
optionsrequired tabs.option component- Parameters:
referencestring
- Parameters:
contentsrequired tabs.content component- Parameters:
referencestring
- Parameters:
- Example:
<x-tabs.index>
<x-slot name="options">
<x-tabs.option class="active" reference="tab1">
Option1
</x-tabs.option>
<x-tabs.option reference="tab2">
Option2
</x-tabs.option>
<x-tabs.option reference="tab3">
Option3
</x-tabs.option>
</x-slot>
<x-slot name="contents">
<x-tabs.content class="active show" reference="tab1">
Hello world 1
</x-tabs.content>
<x-tabs.content reference="tab2">
Hello world 2
</x-tabs.content>
<x-tabs.content reference="tab3">
Hello world 3
</x-tabs.content>
</x-slot>
</x-tabs.index>
luisozparr/adminlte_laravel_components 适用场景与选型建议
luisozparr/adminlte_laravel_components 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 234 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 12 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 luisozparr/adminlte_laravel_components 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 luisozparr/adminlte_laravel_components 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 234
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-12