Nwidart\Modules\Module::boot PHP Метод

boot() публичный Метод

Bootstrap the application events.
public boot ( )
    public function boot()
    {
        if (config('modules.register.translations', true) === true) {
            $this->registerTranslation();
        }
        $this->fireEvent('boot');
    }

Usage Example

Пример #1
0
 /** @test */
 public function it_loads_module_translations()
 {
     $this->module->boot();
     $this->assertEquals('Recipe', trans('recipe::recipes.title.recipes'));
 }