Support the ongoing development of Laravel.io →
posted 10 years ago
Views Blade
Last updated 2 years ago.
0

Yes, that's what you should always do anyways.

Last updated 2 years ago.
0

Try something like:

$data['brands'] = $this->brands;

return View::make('form')->with('brands', $data['brands']);

Issue now is, you're sending through $data and it has no idea where you're plucking $brands from. Not sure if this will work, haven't tested, but in your blade {{ $data->brands }} may work, not sure though.

Also to make it more readable in blade, instead of using isset(), you can do:

{{{ $name or 'Default' }}} as per the docs.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Sharping sharping Joined 28 Jun 2014

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.