class WatchController extends Controller
{
public function index(IlluminateFilesystemFilesystem $filesystem)
{
$files = $filesystem->allFiles($watchFolderPath);
// Your code.
return view('name', ['files' => $files]);
}
}