public function boot()
 {
     $this->app->singleton('translator', function ($app) {
         $loader = $app['translation.loader'];
         $locale = $app['config']['app.locale'];
         $trans = new \Waterloomatt\Translation\Translator($loader, $locale);
         $trans->setFallback($app['config']['app.fallback_locale']);
         return $trans;
     });
     parent::boot();
 }
 public function boot()
 {
     $this->app->bindShared('translator', function ($app) {
         $loader = $app['translation.loader'];
         $locale = $app['config']['app.locale'];
         $trans = new WarningTranslator($loader, $locale);
         $trans->setFallback($app['config']['app.fallback_locale']);
         return $trans;
     });
     parent::boot();
 }
 public function boot()
 {
     $this->package('nicolasbeauvais/lari18n');
     include __DIR__ . '/../../routes.php';
     $this->app->bindShared('translator', function ($app) {
         // Instantiate Translator
         $loader = $app['translation.loader'];
         $locale = $app['config']['app.locale'];
         $trans = new Translator($loader, $locale, $this->app['lari18n']);
         $trans->setFallback($app['config']['app.fallback_locale']);
         return $trans;
     });
     Lari18n::getInstance()->setTranslator($this->app['translator']);
     // Provide commands
     $this->app->bind('lari18n::command.new.translation', function ($app) {
         return new NewTranslation();
     });
     $this->app->bind('lari18n::command.update.translation', function ($app) {
         return new UpdateTranslation();
     });
     $this->commands(array('lari18n::command.new.translation', 'lari18n::command.update.translation'));
     parent::boot();
 }