You can use the following code to pass to data from Laravel controller to the view
public function index(){ $memberships = Membership::all(); return view('membership.index')->with("memberships",$memberships); }