I am trying to use Laravel to set up the required database tables. Using the documented:
php artisan make:migration create_users_table;
php artisan migrate;
However, this generates a simple three-column table:
id
created_at
updated_at
Authentication (default Laravel setup) requires obvious fields such as email and password, meaning an error when trying to use 'out of the box' authentication:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause' (SQL: select count(*) as aggregate from
users
where
I am missing something here, I would have thought that to use the preset authentication scaffolding, Laravel would set up the database correctly.
What should I be running to do this from the outset?