@@ -68,8 +68,7 @@ private function createUsersTable()
6868 'users ' ,
6969 function ($ table ) {
7070 $ table ->increments ('id ' );
71- $ table ->string ('first_name ' );
72- $ table ->string ('last_name ' );
71+ $ table ->string ('name ' );
7372 $ table ->string ('email ' )->unique ();
7473 $ table ->enum ('notify ' , ['y ' , 'n ' ])->default ('y ' );
7574 $ table ->timestamps ();
@@ -82,9 +81,9 @@ function ($table) {
8281 */
8382 private function seedUsersTable ()
8483 {
85- DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, first_name, last_name, email, created_at, updated_at) VALUES (?, ?, ?, ?, datetime(), datetime()) ' , [
1 ,
'Chris ' , ' Gmyr ',
'[email protected] ' ]);
86- DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, first_name, last_name, email, created_at, updated_at) VALUES (?, ?, ?, ?, datetime(), datetime()) ' , [
2 ,
'Adam ' , ' Wathan ',
'[email protected] ' ]);
87- DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, first_name, last_name, email, created_at, updated_at) VALUES (?, ?, ?, ?, datetime(), datetime()) ' , [
3 ,
'Taylor ' , ' Otwell ',
'[email protected] ' ]);
84+ DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, name, email, created_at, updated_at) VALUES (?, ?, ?, datetime(), datetime()) ' , [
1 ,
'Chris Gmyr ' ,
'[email protected] ' ]);
85+ DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, name, email, created_at, updated_at) VALUES (?, ?, ?, datetime(), datetime()) ' , [
2 ,
'Adam Wathan ' ,
'[email protected] ' ]);
86+ DB ::
insert (
'INSERT INTO ' .
DB ::
getTablePrefix () .
'users (id, name, email, created_at, updated_at) VALUES (?, ?, ?, datetime(), datetime()) ' , [
3 ,
'Taylor Otwell ' ,
'[email protected] ' ]);
8887 }
8988
9089 /**
0 commit comments