Laravel Error:Integrity constraint violation

yesterday : when i am trying to submit data to store in database i got error integrity constraint violation rule

because role_id is foreign key and i did not mention this field in user model.

Solution: after role_id mention in user model my error got solved

https://gist.github.com/rakesh1166-cm/6e233a6d0f51504801713420cb483338#file-users-php

Rakesh K
Tagged :
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x