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

Make markdown page model constructor parameters optional #65

Closed
caendesilva opened this issue Jun 19, 2022 · 1 comment · Fixed by #66
Closed

Make markdown page model constructor parameters optional #65

caendesilva opened this issue Jun 19, 2022 · 1 comment · Fixed by #66

Comments

@caendesilva
Copy link
Member

Some pages don't have front matter, and there is no real point having to supply [] when initializing pages. It would give a better developer experience to make an empty array the default, and empty string as the body the default as well.

@caendesilva caendesilva changed the title Make page model constructor parameters optional Make markdown page model constructor parameters optional Jun 19, 2022
@caendesilva
Copy link
Member Author

Update to specify that this is for Markdown pages, as Blade pages never have front matter.

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 a pull request may close this issue.

1 participant