Laravel: how to access a file in the local disk? - File does not exist
问题 I'm trying to edit an excel file after uploading it in laravel. the file is uploaded to local disk, so no one can access it from the public. Filesystems.php 'local' => [ 'driver' => 'local', 'root' => storage_path('app') Routes.php Route::get('test',function() { // Create new PHPExcel object $objPHPExcel = new PHPExcel(); $objPHPExcel = PHPExcel_IOFactory::load(Storage::disk('local')->url('margin/analyser/0IGkQQgmGXkHrV9ISnBTrGyZFUPfjz3cWJbLGbDN.xlsx')); $objPHPExcel->setActiveSheetIndex(0);