Skip to content

Commit

Permalink
Resolve variables passed to @asset() directive
Browse files Browse the repository at this point in the history
Fixes #1845
  • Loading branch information
QWp6t authored Feb 26, 2017
1 parent 25444df commit 4a74183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
* Create @asset() Blade directive
*/
sage('blade')->compiler()->directive('asset', function ($asset) {
return '<?= App\\asset_path(\''.trim($asset, '\'"').'\'); ?>';
return "<?= App\\asset_path({$asset}); ?>";
});
});

Expand Down

0 comments on commit 4a74183

Please sign in to comment.