Ejemplo n.º 1
0
 /**
  * Flush all of the section contents if done rendering.
  *
  * @return SectionsTrait
  */
 public function flushSectionsIfDoneRendering()
 {
     if ($this->viewFactory->doneRendering()) {
         $this->flushSections();
         return $this;
     }
 }
Ejemplo n.º 2
0
 /**
  * Check if there are no active render operations.
  *
  * @return bool 
  * @static 
  */
 public static function doneRendering()
 {
     return \Illuminate\View\Factory::doneRendering();
 }