project you will probably want environmental configuration so in bootstrap/app.php - uncomment // Dotenv::load (__DIR__.'/../'); and rename .env.example to .env
project it’s likely a micro-service you will probably want to do some request/response interaction (api-key, filtering , content negotiation,csrf) so turn on middleware - these things can live here // $app->routeMiddleware([]); guess how - becoming a pattern right
the things and keep it fast Need a db , cache or queue php artisan make database - sets up folder structure with seeds, migrations (enable eloquent in app if required) Queuing ready just enable in config , pull package and write jobs in app/jobs Cache - just use the cache-driver setting in .env
not exactly though can be inline $app->get('{path:.*}', function($path) { echo 'url is ' . $path; }); can be all done in line or can point to controller of course
seem fast ? Yes .. In benchmarks - only phalcon can beat it http://taylorotwell.com/how-lumen-is- benchmarked/ • Silex: 950 requests per second • Slim: 1250 requests per second • Lumen: 1700 requests per second Premature optimisation is important right !!
in sleep deprived state Lumen is following laravel versioning - so all ready on 5.0.x I thought blade is not out of the box cos I could not get - index.blade.php to work - turns out {{ HTML:: script('resources/js/bootstrap.min.js') }} in view when html no longer in L5 core not good need to enable facades for schema::create to work