ElFinder example
Instructions
- Install fresh laravel 5.4
composer create-project laravel/laravel project 5.4.*
- Install elFinder package
composer require barryvdh/laravel-elfinder
- Add the service provider to the
app.php
file.
Barryvdh\Elfinder\ElfinderServiceProvider::class,
- Publish the elFinder assets and the config file.
php artisan elfinder:publish
php artisan vendor:publish --provider='Barryvdh\Elfinder\ElfinderServiceProvider' --tag=config
- Add routes in the
web.php
file
Route::get('/', '\Barryvdh\Elfinder\ElfinderController@showIndex');
Route::get('/elfinder/connector', '\Barryvdh\Elfinder\ElfinderController@showConnector');
- Select the disk in the
elfinder.php
file. Or (for testing) in the root of your project create a files
directory inside the public folder.
[
// From the elfinder config file. This was causing the error.
'dir' => ['files'],
]
- Have Fun :P