1. Go to this page and download the library: Download djurovicigoor/lara-files library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/*
|--------------------------------------------------------------------------
| Default visibility
|--------------------------------------------------------------------------
|
| public => Files are accessible through a browser
| private => Files are not accessible through a browser
*/
'visibility' => 'public',
/*
|--------------------------------------------------------------------------
| Type of files - relations
|--------------------------------------------------------------------------
|
*/
'types' => [
'file',
'avatar',
'thumbnail',
],