belongsToMany(Sant::class, 'chaturma_thanas') ->withTimestamps(); } /** * Returns model in days since created_at. */ public function getIsOwnerAttribute() { $user = loggedInUser(); return $this->created_by == $user->id; } /** * add points for for registration. */ public function addPoints() { return $this->morphMany(KarmaPointsTransaction::class, 'pointable'); } }