Nwidart\Modules\Module::boot PHP Method

boot() public method

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

Usage Example

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