Support the ongoing development of Laravel.io →
posted 10 months ago
Laravel
Last updated by @anonymous4codes 10 months ago.
0

In your controller you can use:

$member=Member::all();
return view('Dashboard', ['data' => $member]);

or

$data=Member::all();
return view('Dashboard', compact('data'));

and make sure your view name is correct and also your variable $data in your view blade is same as it's in controller.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.