Skip to content

Add proper error message if creatable attribute not defined in model#218

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Mar 11, 2026
Merged

Add proper error message if creatable attribute not defined in model#218
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

if (empty($this->creatable)) {
            throw new \RuntimeException(
                "Model " . static::class . " has no \$creatable attributes defined."
            );
        }

@techmahedy techmahedy merged commit b4b7e67 into doppar:3.x Mar 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant