Created
December 5, 2016 17:31
-
-
Save acacha/b71dfff728ef8b0223af1dd4770180bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Seeder; | |
/** | |
* Class AdminUsersSeeder | |
*/ | |
class AdminUsersSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() | |
{ | |
try { | |
factory(App\User::class)->create([ | |
"name" => "Sergi Tur Badenas", | |
"email" => "[email protected]", | |
"password" => bcrypt(env('SERGI_PWD', '123456'))] | |
); | |
} catch (\Illuminate\Database\QueryException $exception) { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment