where('user_id', Auth::user()->id); } function User() { return $this->hasOne(User::class, 'id', 'user_id'); } }