Unverified Commit 2db4be9b authored by Esteban Zeller's avatar Esteban Zeller Committed by GitHub

Added new directives

parent ca13b958
......@@ -94,8 +94,17 @@ class SettingServiceProvider extends ServiceProvider
if (app()->environment() === 'testing') {
return;
}
$this->app['blade.compiler']->directive('setting', function ($value) {
return "<?php echo SettingDirective::show([$value]); ?>";
});
$this->app['blade.compiler']->directive('hasSetting', function($value) {
return "<?php if (SettingDirective::has([$value])) : ?>";
});
$this->app['blade.compiler']->directive('endHasSetting', function() {
return "<?php endif; ?>";
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment