vladislavtkachenko / extend-owl-admin
Extend Owl Admin
Installs: 4 878
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 0
Forks: 3
Open Issues: 0
Requires
- php: >=7.0.0
- laravelrus/sleepingowl: 4.*@dev
This package is not auto-updated.
Last update: 2025-06-08 09:14:16 UTC
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