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