public function boot(GateContract $gate)
{
$this->registerPolicies($gate);
if (!$this->app->routesAreCached()) {
require __DIR__ . '/../Http/routes.php';
}
Event::listen('eloquent.creating: *', CreatingListener::class);
Event::listen('eloquent.created: *', CreatedListener::class);
$this->publishes([__DIR__ . '/../../config/config.php' => config_path('genealabs-laravel-governor.php')], 'config');
$this->publishes([__DIR__ . '/../../public' => public_path('genealabs-laravel-governor')], 'assets');
$this->publishes([__DIR__ . '/../../resources/views' => base_path('resources/views/vendor/genealabs-laravel-governor')], 'views');
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'genealabs-laravel-governor');
}