1@foreach ($watchFolder as $key => $value)
2 Key: {{ $key }}
3 Value: {{ $value }}
4@endforeach
5
1class WatchController extends Controller
2{
3 public function index(\Illuminate\Filesystem\Filesystem $filesystem)
4 {
5 $files = $filesystem->allFiles($watchFolderPath);
6
7 // Your code.
8
9 return view('name', ['files' => $files]);
10 }
11}
12