Experimenting with Repositories
So I guess this is somewhat of a live coding session, only in a Github Gist format. I’m still trying to wrap my head around the Repository Pattern in Laravel.
In this Gist, I have a hypothetical Wiki application. I want to have users to be able to create a static markdown file (ex. post.md
). That particular file then gets detected and stored in the database. Then the stored markdown can be retrieved and converted into HTML. The user can also edit the article within a dashboard/admin.
Here is a rough concept (probably doing it wrong):
Going to be editing this Gist until I have a nailed down concept. ¯_(ツ)_/¯
Cheers.