oscer-io / oscer

A simple CMS and blogging platform as a Laravel package
https://oscer.io/
MIT License
9 stars 2 forks source link

Introduce FormResource interface #124

Closed bambamboole closed 4 years ago

bambamboole commented 4 years ago

This PR introduces a FormResource interface. The interface abstracts the resolution of the Forms.

With this we have much more options to create forms because they are not bound to eloquent models anymore.

Additionally this changes how forms are saved. Each field will fill its value on its own from the request. After each field is filled, the resource will be saved.