Support the ongoing development of Laravel.io →
Laravel Blade
0

pass parameter id to showpekerjaan(), ex : showpekerjaan($id)

then

$pekerjaan = Pekerjaan::with('penyedia')->whereHas('penyedia',function($q) use($id){ $q->where('foreign_key',$id); })->paginate();

foreign_key -> you foreign key in Pekerjaan entity

0

Sign in to participate in this thread!

Eventy

Your banner here too?

YuPhe doubleyupi Joined 23 Jun 2022

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.