fields types in mysql table relationships
In
many to many
relationship
user_id
inside
user_roles
table must be exactly the same as the
id
field inside
users
table Example: if
users->id
is
bigint(20) unsigned
then
user_role->user_id
must be exactly
bigint(20) unsigned
by Valeri Tandilashvili
4 years ago
Laravel
1
Pro tip: use ```triple backticks around text``` to write in code fences