withoutComponentTags(); } return $blade_compiler; } /** * Compiles the Blade template string into a PHP string in one step. * * @param string $text Blade string to be compiled to a PHP string * @return string */ protected static function compileBladeToPhp( $text ) { return static::getBladeCompiler()->compileString( $text ); } /** * {@inheritdoc} * * Note: In the parent PhpCode class fromString() uses fromStringMultiple() (overriden here) */ public static function fromStringMultiple( $text, array $translations, array $options = [] ) { $php_string = static::compileBladeToPhp( $text ); return parent::fromStringMultiple( $php_string, $translations, $options ); } }