whereBetween and whereNotBetween

  • STEP

    1. whereBetween

    query
    
                        select * from `users` 
    
    	where `points` between ? and ?
                        
    using model
    
                        $users = User::select("*")
                            ->whereBetween('points', [1, 100])
                            ->get();
    
                              

    2. whereNotBetween

    query
    
                              select * from `users` 
    
                                        where `points` not between ? and ?
                              
    using model
    
                              $users = User::select("*")
                            ->whereNotBetween('points', [1, 100])
                            ->get();