Support the ongoing development of Laravel.io →
posted 9 years ago
IOC Views
Last updated 1 year ago.
0
$view = View::make('view', $data);
$viewData = $view->getData();

This should work.

Last updated 1 year ago.
0

revati said:

$view = View::make('view', $data);
$viewData = $view->getData();

This should work.

but how can I get the current request view object?

Last updated 1 year ago.
0

There isnt such thing, each request can have views as much as needed, or none (POST/DELETE requests)

What problem are you trying to solve with this approach?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ammont ammont Joined 10 Feb 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.