I have this version: Lumen (5.2.6) (Laravel Components 5.2.*)
It's installed by default.
$app->get('/', function () use ($app) {
return $app->make('view')->make('welcome');
});
Make a file /resources/views/welcome.blade.php to see it works.
In Lumen 5.5, you can do this:
$router->get('/', function () use ($router) {
return $router->app->make('view')->make('welcome');
});
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