Skip to content

Instantly share code, notes, and snippets.

@acacha
Created December 5, 2016 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acacha/b71dfff728ef8b0223af1dd4770180bd to your computer and use it in GitHub Desktop.
Save acacha/b71dfff728ef8b0223af1dd4770180bd to your computer and use it in GitHub Desktop.
<?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" => "sergiturbadenas@gmail.com",
"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