当我有一个变量时:
$ storagePath =('/ xampp / htdocs / systeembeheer / public / download');
$files = File::allFiles($storagePath);
return View::make('documentatie.overzicht') ->with('files', $files);
在我看来,文件显示为:
/xampp/htdocs/systeembeheer/public/download/test.txt
,但我只希望看到test.txt
。
答案 0 :(得分:7)