belongsTo(User::class,'user_id')->withTrashed(); } public function type() { return $this->belongsTo(NoteType::class,'note_type_id'); } public function loanable() { return $this->morphTo()->withTrashed(); } }