Closed JakubKermes closed 1 week ago
Turn this into universal helper:
protected function getModelNamespace(): string { return "App\\Models\\"; } protected function recognizeModelClass(string $model): string { if (str_contains($model, "\\")) { return $model; } $model = Str::ucfirst(Str::singular($model)); return $this->getModelNamespace() . $model; }
Turn this into universal helper: