@Kunzilla you need to define the relationships between the User and Club Models
// this file for User Model
<?php
use App\Club;
class User Extends Eloquent {
public function clubs() {
return this->belongsToMany(Club::class,'user_id');
}
}
<?php
// This File for Club Model
use App\User;
class Club Extends Eloquent {
public function users() {
return this->belongsToMany(User::class,'club_id');
}
}
@abusalameh Thanks for your example. I goes in the right direction, but whats with the clubs_users table? This table are for the link betweet "users" and "clubs".