$view = View::make('view', $data);
$viewData = $view->getData();
This should work.
revati said:
$view = View::make('view', $data); $viewData = $view->getData();This should work.
but how can I get the current request view object?
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?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.