dukhanin/laravel-panel

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (2.0.5) of this package.

Laravel 5 panel constructor

Installs: 176

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

2.0.5 2019-04-09 05:11 UTC

README

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/