Looks like your issue is this:
@foreach($data as $info)
You need to send the $data variable to the view.
For example:
public function index()
{
$data = Admin::all(); // get all data
return View('test', compact('data'));
}
OOPs, just looked at your post again...
NOT $data but data
Thank you very much illuminate3 that did the trick, i cannot believe i missed such a simple thing.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community