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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community