PHP code example of rik3sh / rb-file-manager

1. Go to this page and download the library: Download rik3sh/rb-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/ */

    

rik3sh / rb-file-manager example snippets


rik3sh\RBFileManager\FileManagerServiceProvider::class,


use rik3sh\RBFileManager\FileManager;

// Storing a new file
FileManager::storeFile($request->the_file_input_name, 'ANY_FOLDER_NAME_YOU_WANT');

// Replacing/Updating a new file
FileManager::updateFile($request->the_file_input_name, 'ANY_FOLDER_NAME_YOU_WANT', $oldfilename);
// The $oldfilename is optional. If $oldfilename is provided, the new file will replace it.

// Deleting a file
FileManager::deleteFile('ANY_FOLDER_NAME_YOU_WANT', $filename);

shell
php artisan vendor:publish --provider="rik3sh\RBFileManager\FileManagerServiceProvider"