PHP code example of expresslanding / laravel-filesystem

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

    

expresslanding / laravel-filesystem example snippets


FILESYSTEM_DATABASE=mysql
FILESYSTEM_TABLE=filesystems

...
$table->text('name');                                               // For MySQL use string('name', 200);
$table->jsonb('config');                                            // For MySQL use text('config');
...

...
$table->string('name', 200);
$table->text('config');
...

FILESYSTEM_DATABASE=pgsql
FILESYSTEM_TABLE=content.filesystems

    ...
    'statuses' => [
        /*
         * Don't rewrite this status because it's main disk status!
         */
        'newAvailableStatusName',
        ...
    ],
    'statuses_map'   => [
        ...
        /*
         * Status defining a free disk for work
         */
        'availableDisk' => 'newAvailableStatusName',
    ],
],

    ...
    'statuses' => [
        ...
        /*
         * This status is the default after disk creation.
         */
        'newDeactivatedStatusName',
        ...
    ],
    'statuses_map'   => [
        /*
         * The status assigned to the new disk
         */
        'newDisk'       => 'newDeactivatedStatusName',
        ...
    ],
],
shell script
php artisan vendor:publish --provider="ExpressLanding\Filesystem\FilesystemServiceProvider"