public function attachRole($roleSlug)
    {
        // add dealer role to user
        $role = Role::where('keyword', $roleSlug)->first();
        $this->roles()->attach([$role->id]);

        return $this->roles;
    }
public function attachRole($roleSlug)
    {
        // add dealer role to user
        $role = Role::where('keyword', $roleSlug)->first();
        $this->roles()->attach([$role->id]);

        return $this->roles;
    }
public function attachRole ( $ roleSlug ) { // add dealer role to user $ role = Role :: where ( 'keyword' , $ roleSlug ) -> first ( ) ; $ this -> roles ( ) -> attach ( [ $ role -> id ] ) ; return $ this -> roles ; }
Attach a Role to the user from the role slug
@param $roleSlug
@return mixed
Attach a Role to the user from the role slug