/lara-5.4-elFinder

Trying elFinder for Laravel 5.4

Primary LanguagePHP

ElFinder example

Instructions

  1. Install fresh laravel 5.4
composer create-project laravel/laravel project 5.4.*
  1. Install elFinder package
composer require barryvdh/laravel-elfinder
  1. Add the service provider to the app.php file.
Barryvdh\Elfinder\ElfinderServiceProvider::class,
  1. Publish the elFinder assets and the config file.
php artisan elfinder:publish
php artisan vendor:publish --provider='Barryvdh\Elfinder\ElfinderServiceProvider' --tag=config
  1. Add routes in the web.php file
Route::get('/', '\Barryvdh\Elfinder\ElfinderController@showIndex');
Route::get('/elfinder/connector', '\Barryvdh\Elfinder\ElfinderController@showConnector');
  1. 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'],
]
  1. Have Fun :P