public function toArray()
{
$this->validator->verify($this);
$this->parseAuthor($this->author);
$packageInfo = explode('/', $this->name);
$this->vendor = Str::studly($packageInfo[0]);
$this->package = Str::studly($packageInfo[1]);
return ['name' => $this->name, 'description' => $this->description ?: '', 'vendor' => $this->vendor, 'package' => $this->package, 'authorName' => $this->authorName, 'authorEmail' => $this->email, 'config' => Str::slug($this->package)];
}