Support the ongoing development of Laravel.io →
Laravel Views
Last updated 1 year ago.
0

Why are you passing Entries object to this method?

0

In ur controller ur passing entry and in the blade file ur trying to loop through variable called entries hence it fails to identify the variable entry. Below is the updated controller method.

public function showUpload(Entries $entry)
{
  $entries = Entries::with('entrys')->where('user_id', '=', Auth::user()->id)->get();
  return view('viewentry', compact('entries'));
}
0

I updated the controller code to what you suggested but it still isn't working as it should.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Luke Frost Luke Frost lukefrost Joined 9 Aug 2017

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.