lumen
NotFoundHttpException with Lumen
The problem was solved by changing the $app->run(); in /public/index.php to $request = Illuminate\Http\Request::capture(); $app->run($request);
Lumen Micro Framework => php artisan key:generate
The Laravel command is fairly simple. It just generates a random 32 character long string. You can do the same in Lumen. Just temporarily add a route like this: $router->get(‘/key’, function() { return \Illuminate\Support\Str::random(32); }); Then go to /key in your browser and copy paste the key into your .env file. Afterwards remove the route. … Read more
Change Timezone in Lumen or Laravel 5
You can set your app time zone by configuring app.php file in config folder . To change time zone , modify the value of timezone in app.php file. This is written in this section |————————————————————————– | Application Timezone |————————————————————————– | | Here you may specify the default timezone for your application, which | will be … Read more
Lumen: get URL parameter in a Blade view
This works well: {{ app(‘request’)->input(‘a’) }} Where a is the url parameter. See more here: http://blog.netgloo.com/2015/07/17/lumen-getting-current-url-parameter-within-a-blade-view/
Differences and Similarities Between Lumen and Laravel
Update (5.2) With the latest version of Lumen (5.2) the Microframework focuses on Stateless APIs. The documentation states: Lumen 5.2 represents a shift on slimming Lumen to focus solely on serving stateless, JSON APIs. As such, sessions and views are no longer included with the framework. If you need access to these features, you should … Read more