@php
var_dump($arr);
@endphp
echo implode("
",$array);
echo implode("
",array_collapse($array));
<?php dd($array); ?>
@foreach ($watchFolder as $key => $value)
Key: {{ $key }}
Value: {{ $value }}
@endforeach
@foreach ($watchFolder as $w)
{{ $w->name }}
@endforeach
class WatchController extends Controller
{
public function index(IlluminateFilesystemFilesystem $filesystem)
{
$files = $filesystem->allFiles($watchFolderPath);
// Your code.
return view('name', ['files' => $files]);
}
}
@php
print_r(Request::segments());
@endphp