oscer-io / oscer

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

WIP: Refactor resources to to fulfill index and show #133

Closed bambamboole closed 4 years ago

bambamboole commented 4 years ago

This PR aims to solve that currently the Resources are only for Forms. It implements the logic to retrieve lists of Resources and display dynamic table in the frontend as well as dynamic show pages. Now we have implement 3 components for each field. Index, Details and Form.

bambamboole commented 4 years ago

Now the Resource expects an Eloquent model. In the first instance I thought it would be nice to be independent of Eloquent, but it gives us so many advantages such as pagination, and relation and so on.