Skip to content

Commit 73b447f

Browse files
committed
Added more laravel blade drictives
1 parent a75f5e2 commit 73b447f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Laravel/AipServiceProvider.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ protected function registerBladeDirectives()
3434
{
3535
return "<?php echo Arabic::getCharset($value); ?>";
3636
});
37+
38+
// Compress
39+
Blade::directive('compress', function($value)
40+
{
41+
return "<?php echo Arabic::compress($value); ?>";
42+
});
43+
44+
// Glyphs
45+
Blade::directive('glyphs', function($value)
46+
{
47+
return "<?php echo Arabic::utf8Glyphs($value); ?>";
48+
});
49+
50+
// Identify
51+
Blade::directive('identify', function($value)
52+
{
53+
return "<?php echo Arabic::identify($value); ?>";
54+
});
3755
}
3856

3957
/**

0 commit comments

Comments
 (0)