Support the ongoing development of Laravel.io →
Eloquent Views Blade
Last updated 2 years ago.
0

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

0

Thank you very much illuminate3 that did the trick, i cannot believe i missed such a simple thing.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

AtomicRSA atomicrsa Joined 24 Jun 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.