Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Eloquent apiProperties #5885

Open
soyuka opened this issue Oct 16, 2023 · 0 comments
Open

Add Eloquent apiProperties #5885

soyuka opened this issue Oct 16, 2023 · 0 comments

Comments

@soyuka
Copy link
Member

soyuka commented Oct 16, 2023

Description
We want to add ApiProperty to Eloquent models. To do so (inspired by #4197) we will add a protected $apiProperties on an Eloquent Model:

class Book extends Model {
    protected $apiProperties = ['name' => new ApiProperty(...)];
}

These need to be read by the Laravel specific PropertyMetadataFactories.

#5882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant