Stevebauman\Translation\TranslationServiceProvider::boot PHP Method

boot() public method

Set up the blade directive.
public boot ( )
    public function boot()
    {
        Blade::directive('t', function ($args) {
            return "<?php echo App::make('translation')->translate{$args}; ?>";
        });
    }
TranslationServiceProvider