so what happens when you run this code?
also $iklans = iklan::latest()->paginate(5); can you do a dd(ilkans); to see what is outputted?
shez1983 said:
so what happens when you run this code?
also $iklans = iklan::latest()->paginate(5); can you do a dd(ilkans); to see what is outputted?
No error but if get the data $iklan->category only ID shown.
Do I need relationship to category table ?
$iklan->category->name;
So I can get category name with this table.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community