Laratrust\LaratrustRegistersBladeDirectives::handle PHP Method

handle() public method

Handles the registration of the blades directives
public handle ( string $laravelVersion = '5.3.0' ) : void
$laravelVersion string
return void
    public function handle($laravelVersion = '5.3.0')
    {
        if (version_compare(strtolower($laravelVersion), '5.3.0-dev', '>=')) {
            $this->registerWithParenthesis();
        } else {
            $this->registerWithoutParenthesis();
        }
        $this->registerClosingDirectives();
    }