Ad
Laravel 5.1 Custom Table Names And Field Names
I am using a already setup database to upgrade an old application to Laravel 5.1 and using out-of-the box authentication system (built-in). The registration/login works only when I use email and password as field name, otherwise it let the user register but not let them login. My question is can we use own filed names?
Ad
Answer
I believe you need to change the migrations
& User
Model's $fillable
property... AuthController
and Illuminate\Foundation\Auth\AuthenticatesUsers
postLogin
and loginUsername
methods
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
Ad