Fixed conflict between components
This commit is contained in:
@@ -47,8 +47,11 @@ class SiswaController extends Controller
|
||||
|
||||
$siswa = Siswa::where('nisn', $request->nisn)
|
||||
->where('tanggal_lahir', $tanggalLahir)
|
||||
->with($request->with)
|
||||
->first();
|
||||
if ($request->with !== null)
|
||||
$siswa = $siswa->with($request->with);
|
||||
|
||||
$siswa = $siswa->first();
|
||||
|
||||
/*
|
||||
* Redirect with error if not found
|
||||
|
||||
Reference in New Issue
Block a user