Support the ongoing development of Laravel.io →
Eloquent Views Blade
Last updated 2 years ago.
0
$array1 = ... ;
$array2 = ... ;
$array3 = ... ;
View::make('name-of-view', compact('array1', 'array2', 'array3');

This will result in variables $array1, $array2 and $array3 (or whatever you name them) being available in your view.

Last updated 2 years ago.
0

Worked perfectly - many thanks Peter :)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.