Package Data | |
---|---|
Maintainer Username: | pratik007kumar |
Maintainer Contact: | pratik007kumar@gmail.com (Pratik Kumar) |
Package Create Date: | 2017-07-03 |
Package Last Update: | 2017-07-14 |
Language: | CSS |
License: | MIT |
Last Refreshed: | 2024-11-23 03:05:54 |
Package Statistics | |
---|---|
Total Downloads: | 240 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 3 |
Total Forks: | 3 |
Total Open Issues: | 0 |
Laravel 5.4 Image Slider
composer require pratik007kumar/slider
or
"require": {
"pratik007kumar/slider": "dev-master"
}
composer update
'providers' => [
// ...
Collective\Html\HtmlServiceProvider::class,
Pratik\Slider\SliderServiceProvider::class,
Barryvdh\Elfinder\ElfinderServiceProvider::class,
// ...
]
'aliases' => [
// ...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Input' => Illuminate\Support\Facades\Input::class,
// ...
],
php artisan vendor:publish
php artisan elfinder:publish
php artisan migrate
'dir' => ['uploads'],
'route' => [
'prefix' => 'elfinder',
'middleware' => ['web', 'auth'], //Set to null to disable middleware filter
],
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => __DIR__.'/../public/uploads',
'URL' => './../../uploads', // <-- That dir should be same as above, in path
'attributes' => array(
array(
'pattern' => '/\/\./',
'read' => false,
'write' => false,
'locked' => true,
'hidden' => true
)
)
)
),
'options' => array(
'accessControl' => 'access',
'uploadAllow' => ['image'],
'mimeDetect' => 'internal',
'imgLib' => 'gd',
'uploadOrder'=> ['allow', 'deny'],
'tmbPath' => '.tmb'
),
This packager Required Auth login if you don't have Auth login
php artisan make:auth
php artisan migrate
'slider_route_prefix' => 'admin',
www.yourdomain.com/admin/slider or localhost/yourapp/admin/slider