belongsTo(Role::class); } public function posts() { return $this->hasMany(Post::class); } /* * Mutators */ // public function setPasswordAttribute($password) { // $this->attributes['password'] = Hash::make($password); // } }