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