api = $api; } public function handle(): void { app(ActivityCreator::class)->createFor($this->api, $this->api->groups()->first()); } public function restore(): void { DB::table('activity_subactivity')->delete(); DB::table('activities')->delete(); DB::table('subactivities')->delete(); } }