name = $name; return $this; } public function shortName(): string { return Str::after($this->name, 'laravel-'); } public function basePath(?string $directory = null): string { if ($directory === null) { return $this->basePath; } return $this->basePath . DIRECTORY_SEPARATOR . ltrim($directory, DIRECTORY_SEPARATOR); } public function setBasePath(string $path): static { $this->basePath = $path; return $this; } }