You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would make more sense to normalize the usage to also use get statically for Hyde pages. And since we have an existing alias for the get method already it should be an easy enough migration (while it is still breaking) Edit: My bad, the other method is not an alias, so I think the current get method could be renamed to data
Most times we use the get method, it's as a facade/helper to get an existing object. See the Route model for example:
develop/packages/framework/src/Facades/Route.php
Lines 19 to 22 in ac1a22b
However, the Hyde pages get method returns data from the front matter.
develop/packages/framework/src/Framework/Concerns/InteractsWithFrontMatter.php
Lines 17 to 22 in 4754e96
I think it would make more sense to normalize the usage to also use get statically for Hyde pages.
And since we have an existing alias for the get method already it should be an easy enough migration (while it is still breaking)Edit: My bad, the other method is not an alias, so I think the current get method could be renamed to datadevelop/packages/framework/src/Framework/Concerns/InteractsWithFrontMatter.php
Lines 35 to 38 in 4754e96
The text was updated successfully, but these errors were encountered: