Hi,
How can I list all the files from my Controller and pass it to my View?
Controller :
public function getUploadPdf() { return View::make('file.uploadpdf') ->with('files', File::allFiles('uploads')); }
View:
@foreach($files as $file) <table> <td> <tr>{{ $file }}</tr> </td> </table>
@endforeach
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community