PHP code example of yuyu-tech / file-manager
1. Go to this page and download the library: Download yuyu-tech/file-manager 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/ */
yuyu-tech / file-manager example snippets
bash
# In your Laravel Project
$ composer p artisan vendor:publish --provider="Yuyu\FileManager\Providers\FileManagerServiceProvider"
#To migrate package resources
$ php artisan migrate --path=database/migration/2019_10_24_090016_create_attachments_table.php
# For ease of use for local storage, create the symbolic link for storage directory using
# Not
bash
$objAttachment = FileManager::storeFile($request->file, $user, 'profilePicture', '/user/profile-picture/');