ArchStanton's avatar

Small site - Lumen or something else

Hi,

I have a little app that is one main long page and a couple of legal type pages. I would like some of the basic functionality - routing, partials/templating, a little form.

Is lumen the best route, should I build it myself or is there something else?

0 likes
6 replies
tykus's avatar

Do you need a framework at all; what will be on the main long page?

ArchStanton's avatar

Mainly html & javascript.

I suppose not but I wanted to tidy up the code without building or installing a router and having a neater way to add the partials rather than require or include.

YazanStash's avatar
Level 11

As far as i know, Lumen doesn't support blade views out of the box since it's aimed at micro-services and APIs, you can of course extend it to do so. Or you can just use Laravel and either use it as is out of the box which is not by any means slow, or you can chop down what you don't need.

tykus's avatar

That simply is not true - views are available in Lumen. There is a resources/views directory in the app.

$router->get('/', function () {
    return view('index'); // same as Laravel!
});

Please or to participate in this conversation.