Laravel-auditing: Can't seed database since v2.3.0

Created on 25 May 2016  路  8Comments  路  Source: owen-it/laravel-auditing

Since the inclusion of route logging (https://github.com/owen-it/laravel-auditing/blob/master/src/AuditingTrait.php#L247), we can't run
php artisan db:seed
This is the exception raised:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function getName() on null

Most helpful comment

Great approach! @achillesp solved the issue itself and added a valuable new config option, which is good for our use case, since we don't intend to log db seeds. Thank you, guys!

All 8 comments

Didn't think about that :-)
The audit logs changes from db seeds too. Guess we need to check for that.
Would someone want to log seeds also? Maybe there could be some config option about this.

Thank @franciscojun, I'll check it out today. :+1:

me too

[Symfony\Component\Debug\Exception\FatalErrorException] Call to a member function getName() on a non-object

I have also the problem

[Symfony\Component\Debug\Exception\FatalErrorException] Call to a member function getName() on a non-object

I have sent a suggestion - fix... hope there's no more problems with this :-)

We have a positive return of this issue? or is there another approach that we should know?

@franciscojun and @lrpasquetto, it's alright?

@anteriovieira Perfect now 馃憤 :) Thanks mannnn!!!!!!! # @

Great approach! @achillesp solved the issue itself and added a valuable new config option, which is good for our use case, since we don't intend to log db seeds. Thank you, guys!

Was this page helpful?
0 / 5 - 0 ratings