Laravel two references to same table - development

Laravel two references to same table

I have a transactions tables with sender_id and receiver_id columns which are both references of user.

now, I want to create a hasMany relationship for the user.
(all user’s transaction, be it,received or sent)



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-two-references-to-same-table/
via Lzo Media

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome