Kyslik\ColumnSortable\ColumnSortableServiceProvider::boot PHP Method

boot() public method

Bootstrap any application services.
public boot ( ) : void
return void
    public function boot()
    {
        $this->publishes([__DIR__ . '/../config/columnsortable.php' => config_path('columnsortable.php')], 'config');
        Blade::directive('sortablelink', function ($expression) {
            $expression = $expression[0] === '(' ? substr($expression, 1, -1) : $expression;
            return "<?php echo \\Kyslik\\ColumnSortable\\SortableLink::render(array ({$expression}));?>";
        });
    }
ColumnSortableServiceProvider