Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * Check if a view section exists.
  */
 public function sectionExists(string $section) : bool
 {
     return (bool) trim($this->view->yieldContent($section));
 }