vladislavtkachenko/extend-owl-admin
Composer 安装命令:
composer require vladislavtkachenko/extend-owl-admin
包简介
Extend Owl Admin
README 文档
README
composer require vladislavtkachenko/extend-owl-admin
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
For Laravel < 5.5 after updating composer, add the service provider to the providers array in config/app.php
VladislavTkachenko\Admin\Providers\ExtendOwlAdminServiceProvider::class
Publish assets
php artisan vendor:publish --provider="VladislavTkachenko\Admin\Providers\ExtendOwlAdminServiceProvider" --force
Usage
Orderable block with {image, title, description}
AdminFormElement::orderableBlock('content', 'Content')
Orderable images (only image)
In model
protected $casts = [ 'content' => 'array' ];
In admin Section
AdminFormElement::orderableImages('content', 'Content')
Color Picker
onDisplay
AdminColumn::color('color', 'Color')
onCreate / onEdit
AdminFormElement::colorPicker('color', 'Color')
Yandex Map
AdminFormElement::yandexMap('coords', 'Map')
Server info page: add to the navigation in Admin/navigation.php
(new Page())->setTitle('Server')->setIcon('fa fa-server')->setUrl('/admin/server')
Edit robots.txt file
(new Page())->setTitle('Robots')->setIcon('fa fa-android')->setUrl('/admin/robots')
Show Laravel logs files
Set daily Laravel log in .env file
APP_LOG=daily
Add to the navigation in Admin/navigation.php
(new Page())->setTitle('Logs')->setIcon('fa fa-files-o')->setUrl('/admin/logs')
Auth
Add middleware to the routeMiddleware array in app/Http/Kernel.php
'administrator' => \VladislavTkachenko\Admin\Http\Middleware\Administrator::class
Add middleware to the 'middleware' array in config/sleeping_owl.php
'middleware' => ['web', 'administrator'],
Configure sleeping_owl_extent.php config
统计信息
- 总下载量: 5.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-08