We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc2016 commit 700378aCopy full SHA for 700378a
src/Xinax/LaravelGettext/FileSystem.php
@@ -1,5 +1,6 @@
1
<?php namespace Xinax\LaravelGettext;
2
3
+use Illuminate\Support\Facades\Blade;
4
use RecursiveDirectoryIterator;
5
use RecursiveIteratorIterator;
6
use Xinax\LaravelGettext\Config\Models\Config;
@@ -101,6 +102,9 @@ public function compileViews(array $viewPaths, $domain)
101
102
$files = $fs->allFiles($realPath);
103
104
$compiler = new \Illuminate\View\Compilers\BladeCompiler($fs, $domainDir);
105
+ foreach (Blade::getCustomDirectives() as $directive => $callback) {
106
+ $compiler->directive($directive, $callback);
107
+ }
108
109
foreach ($files as $file) {
110
$filePath = $file->getRealPath();
0 commit comments