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