/** * Get the string contents of a section. * * @param string $section * @param string $default * @return string * @static */ public static function yieldContent($section, $default = '') { return \Illuminate\View\Factory::yieldContent($section, $default); }
/** * Check if a view section exists. */ public function sectionExists(string $section) : bool { return (bool) trim($this->view->yieldContent($section)); }