From 5b1a71cab524eac66006f371434870d02c724dd9 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Mon, 12 Jun 2017 22:25:31 +0200 Subject: [PATCH] add initial user creation --- conf/CreateUser.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 conf/CreateUser.php diff --git a/conf/CreateUser.php b/conf/CreateUser.php new file mode 100644 index 0000000..4e0ca43 --- /dev/null +++ b/conf/CreateUser.php @@ -0,0 +1,41 @@ +insertGetId([ + 'api_key' => str_random(30), + ]); + + // populate user table + $userId = DB::table('users')->insertGetId([ + 'account_id' => $accountID, + 'first_name' => 'yuno_firstname', + 'last_name' => 'yuno_lastname', + 'email' => 'yuno_email', + 'password' => bcrypt('admin'), + 'timezone' => 'America/New_York', + 'remember_token' => str_random(10), + ]); + + $faker = Faker::create(); + + } +}