I need to build a small widget, and was planning to use the Lumen for this because I need a quick response and I need components such as routing, translation, requests and views. the problem is noticed now that the views were discontinued after version 5.1.
Is it possible to use views in more recent versions of Lumen?
While Lumen 5.2.0 originally stripped out views, they were added back in in Lumen 5.2.1, and have been available since. You should be able to use views without an issue.
resources/views/test.blade.php:
Hello, world!
routes.php:
$app->get('/', function () use ($app) {
return view('test');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With