Requirements
- Laravel 4.2 / Laravel 5.1+ / Lumen 5.1+
- PHP 5.6+
- make sure your Cache driver is configured and is working
- Windows environment is not supported
Integration details
- install Laravel Centinel API package:
- for Laravel 4.2 add"gtcrais/laravel-centinel-api": "1.2.*"to your application'scomposer.json
- for Laravel / Lumen 5.1+ add"gtcrais/laravel-centinel-api": "2.2.*"to your application'scomposer.json - run
composer update - Laravel specific:
- for version<=5.4addGTCrais\LaravelAdminApi\LaravelAdminApiServiceProvider::class,to providers array in/config/app.php - Lumen specific:
- uncomment$app->withFacades();in/bootstrap/app.php
- add$app->configure('centinelApi');to/bootstrap/app.php. This will load Centinel API configuration
- add$app->register( GTCrais\LaravelCentinelApi\LumenCentinelApiServiceProvider::class);to/bootstrap/app.phpbelow config file registration - run
composer dump-autoload - run
php artisan centinel-api:setup - after loging into Centinel, create new Application
- from your application's
/config/centinelApi.phpconfig file copyprivateKey,encryptionKeyandroutePrefixinto the newly created application in Centinel - schedule log checks and database backups