FIX: fix typo in Blade macro

This commit is contained in:
Michal Kváček
2016-09-26 21:01:05 +02:00
parent 07df49c481
commit 256e24c5a4
+1 -1
View File
@@ -75,7 +75,7 @@ class GlobalViewDataProvider extends ServiceProvider
// shortcut for loading thumbnails of uploaded images
Blade::extend(function ($view) {
$pattern = $this->createPattern('upload');
$pattern = $this->createPattern('thumbnail');
$code = '<?php echo \App\Helpers\Template::thumbnail($2); ?>';
return preg_replace($pattern, $code, $view);