Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to print array in laravel blade

class WatchController extends Controller
{
    public function index(IlluminateFilesystemFilesystem $filesystem)
    {
        $files = $filesystem->allFiles($watchFolderPath);

        // Your code.

        return view('name', ['files' => $files]);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #array #laravel #blade
ADD COMMENT
Topic
Name
5+3 =