Skip to content

Instantly share code, notes, and snippets.

View MohammedMohammedBayomy's full-sized avatar
🎯
Focusing

Mohammed Bayomy MohammedMohammedBayomy

🎯
Focusing
View GitHub Profile
@MohammedMohammedBayomy
MohammedMohammedBayomy / 1README.md
Created July 17, 2019 12:18 — forked from joseluisq/1README.md
How add a custom field to Laravel 5.4 default login. LoginController.php

How add a custom field to Laravel 5.4 default login controller.

In this php example (app/Http/Controllers/Auth/LoginController.php) my model is called Client and the custom field for login validation is status. (Client->status)

Add in your resources/lang/en/auth.php file :

    'failed_status' => 'Your account is inactive yet. Please confirm your e-mail address.',