'datetime', 'is_phone_verified' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'order_count' => 'integer', 'wallet_balance' => 'float', 'loyalty_point' => 'integer', 'ref_by' => 'integer', 'social_id' => 'integer', ]; public function userinfo() { return $this->hasOne(UserInfo::class,'user_id', 'id'); } public function orders() { return $this->hasMany(Order::class); } public function addresses(){ return $this->hasMany(CustomerAddress::class); } public function loyalty_point_transaction() { return $this->hasMany(LoyaltyPointTransaction::class); } public function wallet_transaction() { return $this->hasMany(WalletTransaction::class); } public function category_visit_log() { return $this->morphedByMany(Category::class ,'visitor_log' ); } public function restaurant_visit_log() { return $this->morphedByMany(Restaurant::class ,'visitor_log' ); } }