<?php

namespace Pyaesone17\ActiveState;

use Illuminate\Support\ServiceProvider;

class ActiveStateServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {   
        \Blade::directive('activeCheck', function($expression) {
            return "<?php echo Active::check{$expression} ;  ?>";
        });
        \Blade::directive('ifActiveUrl', function($expression) {
            return "<?php if(Active::checkBoolean{$expression}): ?>";
        });
        \Blade::directive('endIfActiveUrl', function($expression) {
            return '<?php endif; ?>';
        });
        $this->publishes([
            __DIR__.'/config/active.php' => config_path('active.php'),
        ], 'config');        
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('active-state', function ($app) {
            return new \Pyaesone17\ActiveState\Active();
        });
        $this->mergeConfigFrom(
        __DIR__.'/config/active.php', 'active'
    );
    }
}

<?php

namespace Pyaesone17\ActiveState;

use Illuminate\Support\ServiceProvider;

class ActiveStateServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {   
        \Blade::directive('activeCheck', function($expression) {
            return "<?php echo Active::check($expression) ;  ?>";
        });
        \Blade::directive('ifActiveUrl', function($expression) {
            return "<?php if(Active::checkBoolean($expression)): ?>";
        });
        \Blade::directive('endIfActiveUrl', function($expression) {
            return '<?php endif; ?>';
        });
        $this->publishes([
            __DIR__.'/config/active.php' => config_path('active.php'),
        ], 'config');        
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('active-state', function ($app) {
            return new \Pyaesone17\ActiveState\Active();
        });
        $this->mergeConfigFrom(
        __DIR__.'/config/active.php', 'active'
    );
    }
}

Fix blade extension for 5.4
Fix blade extension for 5.4
