2013-11-26 13:45:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class UserTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
|
|
|
|
public function run()
|
|
|
|
{
|
2013-11-26 22:45:10 +01:00
|
|
|
//DB::table('users')->delete();
|
|
|
|
|
2013-11-26 13:45:07 +01:00
|
|
|
/*
|
2013-11-26 22:45:10 +01:00
|
|
|
$account = Account::create(array(
|
|
|
|
'name' => 'Acme Inc',
|
|
|
|
));
|
|
|
|
|
|
|
|
$user = User::create(array(
|
|
|
|
'account_id' => $account->id,
|
|
|
|
'first_name' => 'Hillel',
|
2013-11-26 13:45:07 +01:00
|
|
|
'last_name' => 'Coren',
|
2013-11-26 22:45:10 +01:00
|
|
|
'email' => 'hillelcoren@gmail.com',
|
2013-11-26 13:45:07 +01:00
|
|
|
'password' => Hash::make('1234'),
|
|
|
|
));
|
2013-11-26 22:45:10 +01:00
|
|
|
*/
|
2013-11-26 13:45:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|