@@ -68,8 +68,7 @@ private function createUsersTable()
68
68
'users ' ,
69
69
function ($ table ) {
70
70
$ table ->increments ('id ' );
71
- $ table ->string ('first_name ' );
72
- $ table ->string ('last_name ' );
71
+ $ table ->string ('name ' );
73
72
$ table ->string ('email ' )->unique ();
74
73
$ table ->enum ('notify ' , ['y ' , 'n ' ])->default ('y ' );
75
74
$ table ->timestamps ();
@@ -82,9 +81,9 @@ function ($table) {
82
81
*/
83
82
private function seedUsersTable ()
84
83
{
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] ' ]);
88
87
}
89
88
90
89
/**
0 commit comments