dukhanin/laravel-panel

Laravel 5 panel constructor
182
Install
composer require dukhanin/laravel-panel
Latest Version:2.0.5
Last Updated:Apr 9, 2019
Links: GitHub  ·  Packagist
Maintainer: dukhanin

laravel-panel

Laravel Panel constructor

Installation

Require this package with composer:

composer require dukhanin/laravel-panel

After updating composer, add dukhanin/laravel-panel and intervention/image packages supplying your application config with following rows

config/app.php

'providers' => [
  ...
  /*
   * Package Service Providers...
   */
  Intervention\Image\ImageServiceProvider::class,
  Dukhanin\Panel\Providers\PanelServiceProvider::class,
],

'aliases' => [
  ...
  'Image' => Intervention\Image\Facades\Image::class
]

Copy required package files to your application with the publish command:

php artisan vendor:publish --provider="Dukhanin\Panel\Providers\PanelServiceProvider"

Update composer autoload cache:

composer dump-autoload

Require panel routes to your web routes file

routes/web.php

require 'panel.php';

Running sample

Publish sample files (they wouldnt publish with vendor:publish command without defined --tag=sample)

php artisan vendor:publish --provider="Dukhanin\Panel\Providers\PanelServiceProvider" --tag=sample

Update composer autoload cache:

composer dump-autoload

Run sample migrations and seeders

php artisan migrate
php artisan db:seed --class=SampleSeeder

Require samples routes to your web routes file

routes/web.php

require 'sample.php';

Go and check out /sample url in your app for sample panels

Sample classes are located in your app directory:

app/Http/Controllers/
app/Sample/