atnic/laravel-admin-lte
Composer 安装命令:
composer require atnic/laravel-admin-lte
包简介
Laravel Package for integrating AdminLTE template and this package is Laravel Mix friendly.
README 文档
README
Laravel Package for integrating AdminLTE template and this package is Laravel Mix friendly. Currently this package can be integrated easily only on fresh installation.
For translation in Bahasa Indonesia 🇮🇩, please follow this link
Installation
composer require atnic/laravel-admin-lte
If you are using Laravel 5.5 above skip this step, but if aren't then add this line on config/app.php, on providers
'providers' => [ ... Atnic\AdminLTE\Providers\AppServiceProvider::class, ... ]
And then run,
php artisan make:admin-lte
Let's see what we've install. First, make sure that you already ran php artisan migrate command, then do
php artisan serve
Viola! You've running a Laravel site using AdminLTE.
For more information on command
php artisan make:admin-lte --help
Usage
This package provides view for auth and app. Take a look at resources/views/layouts/app.blade.php.
In this file you can extends global section like user name, avatar, breadcrumbs, and menu.
To extends menu add this in app.blade.php
@section('sidebar-menu') <ul class="sidebar-menu"> <li class="header">MAIN NAVIGATOR</li> <li class="active"> <a href="{{ route('home') }}"> <i class="fa fa-home"></i> <span>Home</span> </a> </li> </ul> @endsection
To extends breadcrumbs add this
@section('breadcrumbs') <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active">Title</li> </ol> @endsection
This package give you free of choice to use any Laravel Package for Menu and Breadcrumb. We recommend spatie/laravel-menu or lavary/laravel-menu, and davejamesmiller/laravel-breadcrumbs.
Any new created page should extends this view.
@extends('layouts.app') // Your blade here
Configuration and Views Customization
Config
To publish this package config to your app config run
php artisan vendor:publish --provider="Atnic\AdminLTE\Providers\AppServiceProvider" --tag="config"
Views
To publish this package views so you can customize on your own run
php artisan vendor:publish --provider="Atnic\AdminLTE\Providers\AppServiceProvider" --tag="views"
Next Step
First of all, you should understand how to use Laravel Mix.
Make sure package.json has "laravel-mix": "^2.0".
AdminLTE need some package on npm. First you need to run
npm install
Install AdminLTE needed package from npm
npm install --save-dev admin-lte@^2.4 bootstrap-sass fastclick font-awesome icheck ionicons jquery jquery-slimscroll
Run Laravel Mix command
npm run development
or use production minimize output
npm run production
Then have a good look on these files
webpack.mix.jsresources/assets/js/admin-lte.jsresources/assets/js/auth.jsresources/assets/sass/admin-lte.scssresources/assets/sass/auth.scss
Happy experimenting!
atnic/laravel-admin-lte 适用场景与选型建议
atnic/laravel-admin-lte 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 6.4k 次下载、GitHub Stars 达 25, 最近一次更新时间为 2017 年 09 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「composer」 「laravel」 「AdminLTE」 「admin-lte」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atnic/laravel-admin-lte 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atnic/laravel-admin-lte 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atnic/laravel-admin-lte 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Alfabank REST API integration
Generate a Composer repository from installed WordPress plugins and themes.
统计信息
- 总下载量: 6.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-17