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

This should work.

Last updated 8 months 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 8 months 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 8 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

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.

© 2023 Laravel.io - All rights reserved.