Z3d0X / filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps
https://filamentphp.com/plugins/fabricator
MIT License
251 stars 48 forks source link

Allow easier subclassing of the Page model #115

Closed Voltra closed 7 months ago

Voltra commented 7 months ago

Most of the time, when we use this package and need to have additional functionalities in our Page model, we extend the base Page model.

Currently, due to how the relationships were defined, we'd need to override them with extremely similar code.

The proposed change just removes that need altogether by using the leaf class directly, relying on PHP's static class name.

what-the-diff[bot] commented 7 months ago

PR Summary

Z3d0X commented 7 months ago

Thanks