Commit e00ce48b authored by Syaifur Rohman's avatar Syaifur Rohman

fix siswa on delete

add ->whereHas('siswa') on relation
parent fcd1f358
...@@ -66,7 +66,7 @@ public function __construct() ...@@ -66,7 +66,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$homevisit_kegiatan = $this->mHomevisitKegiatan->where($wherenyaa)->get(); $homevisit_kegiatan = $this->mHomevisitKegiatan->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -56,7 +56,7 @@ public function __construct() ...@@ -56,7 +56,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$mundur = $this->mMundur->where($wherenyaa)->get(); $mundur = $this->mMundur->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment