systeminc/laravel-admin
Composer 安装命令:
composer require systeminc/laravel-admin
包简介
Administration panel for Laravel framework
README 文档
README
This is Laravel Admin, CRUD (create, read, update and delete) package that can help you get your administration panel in minutes. At this moment we support these modules:
- Pages (page elements, subpages, images, html editor)
- Galleries (images, change order)
- Blog (posts, comments)
- Shop (products, categories, comments, orders, stock)
- Places (locations, maps)
- Leads (contacts, subscriptions)
- Multiple admins
Once you have your administration panel up, you can easily put all of those elements wherever you want in you application files. For usage documentation see Usage section bellow.
Supports Laravel 5.2 -> 5.6 and PHP 7+
Installation
Install using composer:
$ composer require systeminc/laravel-admin
In Laravel 5.5, with Package Auto Discovery it should all be set automatically. For < 5.5, follow these instructions after composer finishes package installation:
Add the service provider to the 'providers' array in config/app.php for Laravel 5.4 and lower:
SystemInc\LaravelAdmin\AdminServiceProvider::class,
If you want to use this package as a facade, add this line to the $aliases array in config/app.php.
'SLA' => SystemInc\LaravelAdmin\Facades\SLA::class,
Start package installation by running install command below:
$ php artisan laravel-admin:install
If you want to install package again from scratch, just delete the config/laravel-admin.php file and drop database, then run install command again.
If our package update throws composer error, try updating dependencies manually with commend below:
$ php artisan laravel-admin:update
Note that this installation uses migrations, so you must run it from machine that has access to your database.
For instance, if you use Vagrant, you will have to do vagrant ssh first, go to your project directory, and run this install command. The same way you run your standard Laravel's migration command.
Extends
- To extend
order itemview in admin panel, in order to customize and show more details about yourorder itemthat are custom to your bisnis model, add blade templateresources\view\sla\order\item.blade.phpin you project.order itemdata is available within$orderItemvariable. - To extend admin package navigations view add blade in you project
resources\view\sla\layout\navigation.blade.php. Use unordered list<ul>. - To extend admin router with your own controllers create new file in
/routes/sla-routes.phpand point it to you controller. This will be under choosenprefixand secured with Admin's credentials. To keepviewin same layout visit this example
Database export
If you use this Laravel Admin package within a team, you will find this artisan command that backups and restores database very useful.
Backup database with command:
$ php artisan laravel-admin:dump-database
Your will be prompted to Enter password: for mysql user specified in .env. File will be saved in /database/sla_dumps.
To restore database on another machine use:
$ php artisan laravel-admin:restore-database
NOTICE* Always do migration first and be carefull that new import is compatable with tour migration status. You can check that with Artisan command php artisan migrate:status before dumoing the export file, and before importing the same on another machine.
WARNING that this will be DROP table and restore latest migration in database/sla_dumps folder.
Your will be prompted to proceed twice with droping database. Mysql will ask several times to Enter password: for mysql user specified in .env.
We are not responsible for any data loss. Use this with caution.
Bash alias
You can create Laravel Admin alias, i.e. in your Homestead environment by adding this function to your bash profile (vi ~/.bash_aliases):
function sla() {
php artisan laravel-admin:"$1"
}
Then if you want to do php artisan laravel-admin:update, just type:
$ sla update
Documentation
Visit Wiki for detailed usage documentation.
Contributing
Contributions to the Laravel Admin library are welcome. Please note the following guidelines before submiting your pull request.
- Follow PSR-2 coding standards.
- Write tests for new functions and added features
- use Laravel Mix for assets
composer install
$ composer install
npm install
$ npm --prefix ./src install
bower install
$ cd src/resources/assets/src
$ bower install
build
$ cd src
$ npm run production
License
This Laravel Admin is open-source software licensed under the MIT license
systeminc/laravel-admin 适用场景与选型建议
systeminc/laravel-admin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 572 次下载、GitHub Stars 达 72, 最近一次更新时间为 2016 年 12 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 systeminc/laravel-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 systeminc/laravel-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 systeminc/laravel-admin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
Analysis module for finding problematical shop data.
Alfabank REST API integration
Smile Retailer Admin
AdminLTE backend theme asset bundle for Yii 2.0 Framework with Bootstrap 4
统计信息
- 总下载量: 572
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 73
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-14


