I've used a migration to update my users table to include a username filed, but on signup the field isn't populated in the database:
$input = Input::only(['name', 'username', 'email', 'password']);
$input['password'] = Hash::make($input['password']);
User::create($input);
return Redirect::to('login');
A dump of the post provides this:
array (size=4)
'name' => string 'Joe Bloggs' (length=13)
'username' => string 'jbloggs' (length=12)
'email' => string 'jbloggs@gmail.com' (length=24)
'password' => string '$2y$10$whgTTwa5g.du/WJfJGhGtO******SYTerzL4bhOuedW4C' (length=60)
However the username field is always blank. No errors or warnings. I've tried a rollback and re-migrating, but there is no change.
Am I missing something? Thanks!