private function addAllRolesToUser($user)
    {
        // only 2 - to 5 are needed
        $roles = Role::whereBetween('id', [2, 7])
            ->pluck('keyword', 'id')
            ->values();

        $user->syncRoles($roles);
    }
private function addAllRolesToUser($user)
    {
        // only 2 - to 5 are needed
        $roles = Role::whereBetween('id', [2, 7])
            ->pluck('keyword', 'id')
            ->values();

        $user->syncRoles($roles);
    }
private function addAllRolesToUser ( $ user ) { // only 2 - to 5 are needed $ roles = Role :: whereBetween ( 'id' , [ 2 , 7 ] ) -> pluck ( 'keyword' , 'id' ) -> values ( ) ; $ user -> syncRoles ( $ roles ) ; }
Add all the roles to the user
@param $user
Add all the roles to the user