public function roles() { if ($this->id === 0) { return; } return $this->belongsToMany(Role::class); }