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
Latest posts by Rakesh K (see all)
- Laravel Error:Integrity constraint violation - May 22, 2021
- Call to a member function createtoken() on null - May 14, 2021
- How to Store Multiple Records using Checkbox in Laravel? - May 12, 2021