File "BladeServiceProvider.php"

Full Path: /home/bettaeza/flyinsyria.com/.well-known/Core/BladeServiceProvider.php
File size: 738 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace Modules\Core;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;

class BladeServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        /*
         * Adds a directive in Blade for actions
         */
        Blade::directive('do_action', function ($expression) {
            return "<?php do_action({$expression}); ?>";
        });
        /*
         * Adds a directive in Blade for filters
         */
        Blade::directive('apply_filters', function ($expression) {
            return "<?php echo apply_filters({$expression}); ?>";
        });
    }
}