app->isLocal()) { $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } // This is so we can access alpine without livewire on the page. \Livewire\Livewire::forceAssetInjection(); } /** * Bootstrap any application services. */ public function boot(): void { Activity::saving(function (Activity $activity) { $activity->properties = $activity->properties->put('ip', request()->ip()); }); } }