function view($file, $par = []) { $view = View::make($file, $par); $hook = config('hook.view'); if ($hook) { return $hook($view); } return $view; }