/** * Get the data bound to the view instance. * * @return array */ protected function gatherData() { $data = array_merge($this->environment->getShared(), $this->data); foreach ($data as $key => $value) { if ($value instanceof Renderable) { $data[$key] = $value->render(); } } return $data; }
/** * Get all of the shared data for the environment. * * @return array * @static */ public static function getShared() { return \Illuminate\View\Environment::getShared(); }