vendredi 14 octobre 2016

Laravel ManyToMany count

I need to check if ManyToMany relationship exists.

I have a business that can have many members and members that can have many businesses.

I have pivot table: business_member

I am trying to use the code I found in this post:

stackoverflow

But I'm getting an error on Laravel.

When I try to run the mysql query from an editor, I get no errors and an empty results.

My code and error: laravel/bin

Can someone please help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire