Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
View
/
Compilers
/
Concerns
:
CompilesJs.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Illuminate\View\Compilers\Concerns; use Illuminate\Support\Js; 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) ); } }