woodfish/laravel-admin
Composer 安装命令:
composer require woodfish/laravel-admin
包简介
laravel admin
README 文档
README
laravel-admin is administrative interface builder for laravel which can help you build CRUD backends just with few lines of code.
Demo use username/password:admin/admin
Inspired by SleepingOwlAdmin and rapyd-laravel.
Screenshots
Installation
First, install laravel, and make sure that the database connection settings are correct.
Laravel 5.2
composer require encore/laravel-admin "dev-master"
Laravel 5.3
composer require encore/laravel-admin "1.3.x-dev"
Laravel 5.1
composer require encore/laravel-admin "1.1.x-dev"
Inconfig/app.phpaddServiceProvider:
Encore\Admin\Providers\AdminServiceProvider::class
Then run these commands to finnish install:
php artisan vendor:publish --tag=laravel-admin
php artisan admin:install
open http://localhost/admin/ in browser,use username admin and password admin to login.
Default Settings
The file in config/admin.php contains an array of settings, you can find the default settings in there.
Documentation
Directory structure
After install,you can find directoryapp/Admin,and then most of our develop work is under this directory.
app/Admin
├── Controllers
│ ├── ExampleController.php
│ └── HomeController.php
└── routes.php
app/Admin/routes.php is used to define routes,for more detail please read routes.
The app/Admin/Controllers directory is used to store all the controllers, The HomeController.php file under this directory is used to handle home request of admin,The ExampleController.php file is a controller example.
Quick start
We use users table come with Laravel for example,the structure of table is:
CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
And the model for this table is App\User.php
You can follow these steps to setup CURD interfaces of table users:
1.add controller
Use the following command to create a controller for App\User model
php artisan admin:make UserController --model=App\\User
The above command will create the controller in app/Admin/Controllers/UserController.php.
2.add route
Add a route in app/Admin/routes.php:
$router->resource('users', UserController::class);
3.add left menu item
Open http://localhost:8000/admin/auth/menu, add menu link and refresh the page, then you can find a link item in left menu bar.
4.build grid and form
The rest needs to be done is open app/Admin/Contollers/UserController.php, find form() and grid() method and write few lines of code with model-grid and model-form,for more detail, please read model-grid and model-form.
Other
laravel-admin based on following plugins or services:
- Laravel
- AdminLTE
- Bootstrap Markdown
- Datetimepicker
- CodeMirror
- font-awesome
- moment
- Google map
- Tencent map
- bootstrap-fileinput
- jquery-pjax
- Nestable
- noty
License
laravel-admin is licensed under The MIT License (MIT).
woodfish/laravel-admin 适用场景与选型建议
woodfish/laravel-admin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 239 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 11 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「form」 「chart」 「grid」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 woodfish/laravel-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 woodfish/laravel-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 woodfish/laravel-admin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple PHP chart drawing library
Yii2 chartjs
2lenet/EasyAdminPlusBundle
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Analysis module for finding problematical shop data.
A Laravel Filament Forms slug field.
统计信息
- 总下载量: 239
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-28
