dukhanin / laravel-panel
Laravel 5 panel constructor
Installs: 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- dukhanin/laravel-support: ~2.0
- fzaninotto/faker: ^1.7
- intervention/image: ^2.4
- meyfa/php-svg: ^0.7.0
Requires (Dev)
- laravel/laravel: ^5.6
- phpunit/phpunit: ^7.0
This package is not auto-updated.
Last update: 2025-01-14 08:08:04 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/