owen-it / laravel-auditing

Record the change log from models in Laravel
https://laravel-auditing.com
MIT License
3.05k stars 390 forks source link

The [sync] queue connection has not been configured. #880

Closed alvaronds closed 11 months ago

alvaronds commented 11 months ago
Q A
Bug? Don't know
New Feature? Think yes
Framework Laravel
Framework version 10.37.3
Package version 13.6.0
PHP version 8.2

Actual Behaviour

I don't want to use queues to add the audits to database. Since updated to 13.6.0, if I don't modify config file I get this error: The [sync] queue connection has not been configured. If I put a valid queue connection it works but uses queues, wich makes much database use for my app.

Expected Behaviour

I need direct execution as before. I think I have all well configurated.

Steps to Reproduce

Update to package version 13.6.0 and have this in audit.conf 'queue' => [ 'connection' => 'sync', 'queue' => 'default', 'delay' => 0, ],

Update a model

MortenDHansen commented 11 months ago

Do you have the connection in the queue.php config file? ` 'connections' => [

    'sync' => [
        'driver' => 'sync',
    ],

`

MortenDHansen commented 11 months ago

846

erikn69 commented 11 months ago

@MortenDHansen It would be a good idea to add some option for those who do not want/can use queue. #881

MortenDHansen commented 11 months ago

We have released the opt-in version of v13.6.0. Hope that solves the issue 👍

alvaronds commented 11 months ago

Thanks a lot for the responses and solution. It's resolved.