i use auth default login in laravel 5.2, but i want when login to update or insert in another table on every user login
i want to insert this when user login
$sql = Counts::where('client_id', Auth::user()->id)->get();
if (sizeof($sql) == 0) {
$sql = new Counts();
$sql->client_id = Auth::user()->id;
$sql->save();
}
Auth/Authcontroller.php dont have login method...
can someone help me please ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire