The way to iternate over the data is do it from what is passed from controller:
Controller:
$data['owners'] = DB::table('powners')
->where('oname', 'like', $ownersearch)
->orderBy('oname', 'asc')
->Paginate(5);
$data['osearch'] = $t1;
return View::make('owner/pownerlist')->with('data', $data['owners'])->with('data2', $data['osearch']);
View:
foreach ($data as $owner){
$owner->oname
}
But what i think that its weird , is that i can to that(what i've made) when a view that dont belongs to a package :/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community