Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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