/** * Run the database seeds. * * @return void */ public function run() { $role = Pingpong\Trusty\Role::create(['name' => 'Admin', 'slug' => 'admin', 'description' => 'Administrator', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user = Pingpong\Admin\Entities\User::create(['name' => 'admin', 'email' => '*****@*****.**', 'password' => 'nimda1324', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user->roles()->attach($role); }
/** * Run the database seeds. * * @return void */ public function run() { $role = Pingpong\Trusty\Role::create(['name' => 'Admin', 'slug' => 'admin', 'description' => 'The one who manage the site', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user = Pingpong\Admin\Entities\User::create(['name' => 'Site Admin', 'email' => '*****@*****.**', 'password' => 'stopstop', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user->roles()->attach($role); }
/** * Run the database seeds. * * @return void */ public function run() { $role = Pingpong\Trusty\Role::create(['name' => 'Site Admin', 'slug' => 'admin', 'description' => 'The one who manage the site', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user = Pingpong\Admin\Entities\User::create(['name' => 'Admin', 'email' => '*****@*****.**', 'password' => 'Somkokot12', 'created_at' => new \Carbon\Carbon(), 'updated_at' => new \Carbon\Carbon()]); $user->roles()->attach($role); }