Package Data | |
---|---|
Maintainer Username: | dukhanin |
Maintainer Contact: | anton.dukhanin@gmail.com (Anton Dukhanin) |
Package Create Date: | 2016-10-20 |
Package Last Update: | 2019-04-09 |
Language: | JavaScript |
License: | Unknown |
Last Refreshed: | 2025-01-13 15:03:13 |
Package Statistics | |
---|---|
Total Downloads: | 181 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel Panel constructor
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';
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/