2017 © Pedro Peláez
 

library extend-owl-admin

Extend Owl Admin

image

vladislavtkachenko/extend-owl-admin

Extend Owl Admin

  • Thursday, July 5, 2018
  • by vladislavtkachenko
  • Repository
  • 0 Watchers
  • 4 Stars
  • 186 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 86 % Grown

The README.md

Install

composer require vladislavtkachenko/extend-owl-admin, (*1)

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider., (*2)

For Laravel < 5.5 after updating composer, add the service provider to the providers array in config/app.php, (*3)

VladislavTkachenko\Admin\Providers\ExtendOwlAdminServiceProvider::class, (*4)

Publish assets

php artisan vendor:publish --provider="VladislavTkachenko\Admin\Providers\ExtendOwlAdminServiceProvider" --force, (*5)

Usage

Orderable block with {image, title, description}

AdminFormElement::orderableBlock('content', 'Content'), (*6)

, (*7)

Orderable images (only image)

In model, (*8)

protected $casts = [ 'content' => 'array' ];, (*9)

In admin Section, (*10)

AdminFormElement::orderableImages('content', 'Content'), (*11)

, (*12)

Color Picker

onDisplay, (*13)

AdminColumn::color('color', 'Color'), (*14)

onCreate / onEdit, (*15)

AdminFormElement::colorPicker('color', 'Color'), (*16)

, (*17)

Yandex Map

AdminFormElement::yandexMap('coords', 'Map'), (*18)

, (*19)

Server info page: add to the navigation in Admin/navigation.php

(new Page())->setTitle('Server')->setIcon('fa fa-server')->setUrl('/admin/server'), (*20)

Edit robots.txt file

(new Page())->setTitle('Robots')->setIcon('fa fa-android')->setUrl('/admin/robots'), (*21)

Show Laravel logs files

Set daily Laravel log in .env file, (*22)

APP_LOG=daily, (*23)

Add to the navigation in Admin/navigation.php, (*24)

(new Page())->setTitle('Logs')->setIcon('fa fa-files-o')->setUrl('/admin/logs'), (*25)

Auth

Add middleware to the routeMiddleware array in app/Http/Kernel.php, (*26)

'administrator' => \VladislavTkachenko\Admin\Http\Middleware\Administrator::class, (*27)

Add middleware to the 'middleware' array in config/sleeping_owl.php, (*28)

'middleware' => ['web', 'administrator'],, (*29)

Configure sleeping_owl_extent.php config, (*30)

The Versions

05/07 2018

dev-master

9999999-dev

Extend Owl Admin

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar vladislavtkachenko

10/01 2018

1.0.3

1.0.3.0

Extend Owl Admin

  Sources   Download

MIT

The Requires

 

by Avatar vladislavtkachenko

09/01 2018

1.0.1

1.0.1.0

Extend Owl Admin

  Sources   Download

MIT

The Requires

 

by Avatar vladislavtkachenko

08/01 2018

1.0.0

1.0.0.0

Extend Owl Admin

  Sources   Download

MIT

The Requires

 

by Avatar vladislavtkachenko