Easy way for connecting RoadRunner and Lumen^6.x applications.
- Require package
composer require qeezer/lumen-roadrunner
- Add provider to
bootstrap/app.php
/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
// add provider
$app->register(\QeeZer\LumenRoadRunner\Providers\LumenServiceProvider::class);
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
- Copy the rr config file to base directory.
cp ./vendor/qeezer/lumen-roadrunner/config/.rr.yaml ./
- Download rr binary file.
./vendor/bin/rr get
- Run it.
./rr serve
Please see https://github.com/spiral/roadrunner-laravel/blob/master/README.md to learn.