pratik007kumar / slider
laravel slider with full feacher by using slick slider js plugin
Installs: 240
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 3
Open Issues: 0
Language:CSS
Requires
- php: >=5.6.4
- barryvdh/laravel-elfinder: ^0.3.10
- laravelcollective/html: ^5.4.0
This package is not auto-updated.
Last update: 2024-11-15 20:48:09 UTC
README
Laravel 5.4 Image Slider
Following are the step to configure Image Slider
Step 1:copy vendor using composer
composer require pratik007kumar/slider
or
"require": {
"pratik007kumar/slider": "dev-master"
}
composer update
step 2: Copy providers to config/app.php
'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,
// ...
],
step 3: Run
php artisan vendor:publish
step 4: Run
php artisan elfinder:publish
step 5: Run
php artisan migrate
step 6: create public/uploads folder and set permission 0777
step 7: Copy following array in config/elfinder.php
'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
You can change Route prefix using config/slider.php
'slider_route_prefix' => 'admin',
you can view laravel slider with following link:
www.yourdomain.com/admin/slider or localhost/yourapp/admin/slider