You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type error: Argument 1 passed to OwenIt\Auditing\AuditingServiceProvider::setupConfig() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given, called in /my_project_folder/vendor/owen-it/laravel-auditing/src/AuditingServiceProvider.php in function boot on line $this->setupConfig($this->app);
Expected Behaviour
To not receive the error above.
Steps to Reproduce
I am installing audit in lumen 5.5 from laravel-lumen (" http://laravel-auditing.com/docs/5.0/installation ") documentation. I follow instruction step by step.
Step 0. Auditing package installation via composer:
composer require owen-it/laravel-auditing
Step 1. Edit the bootstrap/app.php file and add following line:
$app->register(OwenIt\Auditing\AuditingServiceProvider::class);
Step 2. And also enable Facades and Eloquent in bootstrap/app.php:
$app->withFacades();
$app->withEloquent();
Step 3. Installed an extra package according to given documentation via composer:
composer require laravelista/lumen-vendor-publish
Step 4. After the package is installed, I add following line in "app/Console/Kernel.php" :
protected $commands = [
\Laravelista\LumenVendorPublish\VendorPublishCommand::class,
];
Step 5. After configuring my framework, I publish the configuration settings using command:
php artisan auditing:install
This command gives above "Type error" that are mentioned in Actual Behaviour section.
Possible Solutions
Be an instance of Illuminate\Contracts\Foundation\Application instead of instance of Laravel\Lumen\Application.
The text was updated successfully, but these errors were encountered:
Actual Behaviour
Type error: Argument 1 passed to OwenIt\Auditing\AuditingServiceProvider::setupConfig() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given, called in /my_project_folder/vendor/owen-it/laravel-auditing/src/AuditingServiceProvider.php in function boot on line $this->setupConfig($this->app);
Expected Behaviour
To not receive the error above.
Steps to Reproduce
I am installing audit in lumen 5.5 from laravel-lumen (" http://laravel-auditing.com/docs/5.0/installation ") documentation. I follow instruction step by step.
Step 0. Auditing package installation via composer:
composer require owen-it/laravel-auditing
Step 1. Edit the bootstrap/app.php file and add following line:
$app->register(OwenIt\Auditing\AuditingServiceProvider::class);
Step 2. And also enable Facades and Eloquent in bootstrap/app.php:
$app->withFacades();
$app->withEloquent();
Step 3. Installed an extra package according to given documentation via composer:
composer require laravelista/lumen-vendor-publish
Step 4. After the package is installed, I add following line in "app/Console/Kernel.php" :
protected $commands = [
\Laravelista\LumenVendorPublish\VendorPublishCommand::class,
];
Step 5. After configuring my framework, I publish the configuration settings using command:
php artisan auditing:install
This command gives above "Type error" that are mentioned in Actual Behaviour section.
Possible Solutions
Be an instance of Illuminate\Contracts\Foundation\Application instead of instance of Laravel\Lumen\Application.
The text was updated successfully, but these errors were encountered: