There's likely something wrong with the query, so it's not returning an object. You should probably be passing the variables in as a prepared statement, for one. Hopefully someone else can expand on that.
Try removing the ->get() at the end. Also try returning it like that:
return View::make('list')->with('data', $data);
If the problems still continues, var _dump the $data and post the result so we have some more info
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.