Views in Lumen 5.2+

I need to create a small widget and planned to use Lumen for this because I need a quick answer and I need components like routing, translation, queries and views. Now the problem is that the views were discontinued after version 5.1.

Can I use views in later versions of Lumen?

+5
source share
1 answer

While Lumen 5.2.0 initially lost views, they were added to Lumen 5.2.1 and have been available since. You should be able to use views without problems.

resources / views / test.blade.php

Hello, world! 

routes.php

 $app->get('/', function () use ($app) { return view('test'); }); 
+9
source

Source: https://habr.com/ru/post/1257596/


All Articles