create($name, $address, $city, $state, $zip); } public function create( string $name, ?string $address = null, ?string $city = null, ?string $state = null, ?string $zip = null ): School { $newSchool = School::create([ 'name' => $name, 'address' => $address, 'city' => $city, 'state' => $state, 'zip' => $zip, ]); if (auth()->user()) { $message = 'Created school '.$newSchool->name; $affects = ['schools' => [$newSchool->id]]; auditionLog($message, $affects); } return $newSchool; } }