**$auth** = Authentication::where(['registration','=',Input::get('registration'),'transcript_serial','=',Input::get('transcript_serial')])->first();
if (is_null(**$auth)** ){return redirect()->back()->withInput($request->only('registration'));**strong text**}
print_r("this part of database");
}
Sorry in Advance I'm beginner of Laravel. Basically i wanna authenticate that user which are already exist in database like school Management System. I have Authentication Model which is handling authentication table ('id','registration','transcript_serial'); this code is only check one attribute it's could be 'registration'or 'transcript_serial' but my requirement is it should check both record in the authentications table then i will redirect to next page . please guide me.
so please help me Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire