'integer', 'text' => 'string' ]; public function user() { return $this->hasMany(User::class, 'id', 'user_id'); } }