belongsToMany(User::class, 'role_user'); } /** * Get the apps/services assigned to this role. */ public function apps() { return $this->belongsToMany(App::class, 'app_role', 'role_id', 'app_id'); } }