update
parent
5fd63c76c3
commit
186ef43890
|
|
@ -17,7 +17,7 @@ class Profile
|
|||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
$user = User::with(['profile'])->where('id',auth()->user()->id)->first();
|
||||
$user = Sekolah::where('npsn',auth()->user()->username)->where('ms_group_id',2)->first();
|
||||
if(!@$user->profile && ($user->ms_group_id == 2)){
|
||||
return redirect('profile-sekolah/lengkapi/'.encode_id($user->username));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue