Laravel Eloquent whereBetween Example

In this example, You learn laravel eloquent wherebetween example, example of laravel where between eloquent, laravel eloquent wherebetween dates, example of laravel wherebetween date format, simple example of laravel eloquent wherebetween, Laravel where date between two columns.

whereBetween() will help you to getting data with between two dates or two values from database in laravel application.

Read Also :  Laravel 8 Pagination Example

Example of laravel eloquent whereBetween

namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class UserController extends Controller
     * Display a listing of the resource.
     * @return \Illuminate\Http\Response
    public function index()
        $users = User::select("*")
                        ->whereBetween('points', [1, 100])

I hope you understand of laravel eloquent wherebetween and it can help you.