Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/View/Compilers/Concerns/CompilesJs.php
Строк: 19
<?php

namespace IlluminateViewCompilersConcerns;

use 
IlluminateSupportJs;

trait 
CompilesJs
{
    
/**
     * Compile the "@js" directive into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    
protected function compileJs(string $expression)
    {
        return 
sprintf(
            
"<?php echo %s::from(%s)->toHtml() ?>",
            
Js::class, $this->stripParentheses($expression)
        );
    }
}
Онлайн: 0
Реклама