belongsTo(User::class); } public function library(){ return $this->belongsTo(Library::class); } }