Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seed database since v2.3.0 #49

Closed
franciscojun opened this issue May 25, 2016 · 8 comments
Closed

Can't seed database since v2.3.0 #49

franciscojun opened this issue May 25, 2016 · 8 comments

Comments

@franciscojun
Copy link

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

@achillesp
Copy link
Contributor

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.

@anteriovieira
Copy link
Member

Thank @franciscojun, I'll check it out today. 👍

@lrpasquetto
Copy link

me too

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

@tjcalma
Copy link

tjcalma commented May 25, 2016

I have also the problem

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

@achillesp
Copy link
Contributor

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

@anteriovieira
Copy link
Member

anteriovieira commented May 27, 2016

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

@franciscojun and @lrpasquetto, it's alright?

@lrpasquetto
Copy link

@anteriovieira Perfect now 👍 :) Thanks mannnn!!!!!!! # @

@franciscojun
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants