update all
This commit is contained in:
@@ -52,7 +52,15 @@ class LelongController extends Controller
|
||||
public function index()
|
||||
{
|
||||
$lelong = Lelong::all();
|
||||
return view('lelong.senarailelong',compact('lelong'));
|
||||
|
||||
foreach($lelong as $lel)
|
||||
{
|
||||
$caw_lelong = CawanganLelong::join('cawangan', 'cawangan_lelong.caw_id', '=', 'cawangan.id')
|
||||
->where('lelong_id', $lel['id'])
|
||||
->get()->toArray();
|
||||
}
|
||||
|
||||
return view('lelong.senarailelong',compact('lelong', 'caw_lelong'));
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
|
||||
Reference in New Issue
Block a user