Browse Source

fix: update type join

pull/1/head
wahyun 6 months ago
parent
commit
e09a0b11d2
  1. 2
      app/Http/Controllers/ProjectController.php

2
app/Http/Controllers/ProjectController.php

@ -120,7 +120,7 @@ class ProjectController extends Controller
'md.name as divisi_name', 'md.name as divisi_name',
'm_proyek.company_id' 'm_proyek.company_id'
) )
->join('m_divisi as md', 'md.id', '=', 'm_proyek.divisi_id') ->leftJoin('m_divisi as md', 'md.id', '=', 'm_proyek.divisi_id')
->where('m_proyek.id', $id) ->where('m_proyek.id', $id)
->first(); ->first();
if (!$result) { if (!$result) {

Loading…
Cancel
Save