I have an array to perform a where statement:
$array = ['name' => 'Jhon', 'age' => '27'];
User::where($array);
I need to use the same array to perform a search between two different age, I need something like:
User::where('age', '>=', '28')->where('age' , '<=', 50);
How should I do that using the above array?
wherewith the ages range