Open your command console and type just like install another package in laravel.
composer require roketin/immune
After installation done then you
php artisan immune-key:generate
Copy key to .env file on your project and make configuration like this
APP_URL=http://yourwebsite.com
IMMUNE_API=http://immune.roketin.com
IMMUNE_KEY=YOUR_KEY
then you go to file app.php
on directory bootstrap/app.php
you should copy this on register section
$app->register(Roketin\Immune\ReportExceptionsServiceProvider::class);
On your handler app\Exceptions\Handler.php
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
Change to
use Roketin\Immune\Exceptions\ReportHandler as ExceptionHandler;