Reputation: 430
When i have a variable like:
$storagePath = ('/xampp/htdocs/systeembeheer/public/download');
$files = File::allFiles($storagePath);
return View::make('documentatie.overzicht') ->with('files', $files);
In my view, the files displayed as:
/xampp/htdocs/systeembeheer/public/download/test.txt
, but I want to see only test.txt
.
Upvotes: 16
Views: 23444