My question is, why does the following not work?
$questions = Question::where($queryatypes);
$questions->get();
I'm getting the following Error:
Object of class Illuminate\Database\Eloquent\Builder could not be converted to string
Please check the answer
$questions = Question::where($queryatypes);
$questions = $questions->get();