I understand that this endpoint is rather... not so smart but I made it just for learning purposes and getting on Laravel :) Important things for me are concepts and config of repositories, services, models and controllers.
Jul 28, 2019
1
Level 1
First app in Laravel, could someone review one endpoint?
Heyo! I just wrote my very first application in Laravel 5.8 and I would love someone to take a look if i didn't mess application layers and tell me about one bug I'm wondering how to fix.
The flow of application is simple, after accessing offers/get endpoint request 'flies' into OffersController, then request is handled by OfferService which fetches custom jobs offers from external API, then saves them in SQLite db and outputs from DB into the browser as a JSON.
If someone would be so kind to fetch this code and tell me if I didn't make anything dumb within the application layers and/or architecture i would be really greatful.
https://github.com/Marduuk/fetchoffersbook
Cheers!
Please or to participate in this conversation.