mpiontek's avatar

User existing tables

I'd like to use a headless cms to manage my contents. I never ever worked before with a php mvc framework. My vision is to use lumen to make a website, because it offers routing and authentication. In best case i'd like to include a template engine like twig. Lumen should communicate with the database of the headless cms to get the contents or it should use the rest api of my cms to get the contents.

The introduction (https://laracasts.com/lessons/introducing-lumen) only works with tables, which are created by lumen itself. Is there a way to work with existing tables?

My second question: Is there a good tutorial how to work with lumen to get a simple website? Every tutorial i found is to create a rest api or something like that.

0 likes
1 reply
Snapey's avatar

just think of lumen being a sports car and laravel a fully equipped family saloon

if you want to be first away from the trafficlights but nowhere to put the kids, pick lumen.

Otherwise, and my recommendation, use Laravel

Yes you can use existing tables but you will need to add some extra information in your models to override Laravel assumptions

Laravel has its twig equivalent blade

Start with the Laravel from scratch series. Everything you learn will be useful in the long term

1 like

Please or to participate in this conversation.