PHP code example of pallares / laravel-storage-safe
1. Go to this page and download the library: Download pallares/laravel-storage-safe 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/ */
pallares / laravel-storage-safe example snippets
// ...
// Laravel may fail to use the storage if the user who executes
// the script is different from the user who owns this file.
$app = function_exists('posix_geteuid') && (posix_geteuid() !== fileowner(__FILE__))
? new Pallares\Laravel\StorageSafe\Application(realpath(__DIR__.'/../'))
: new Illuminate\Foundation\Application(realpath(__DIR__.'/../'));
// ...