v0.10.3 - Added user "X X" to seeder, and fixed analytics
This commit is contained in:
@@ -13,33 +13,34 @@ class UserSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
// try {
|
||||
//
|
||||
// } catch (Exception $e) {
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
/*if(User::where("name_first", "admin"))
|
||||
{
|
||||
return;
|
||||
}*/
|
||||
|
||||
|
||||
/**
|
||||
* A user is created as the Admin with the below fields.
|
||||
* Super User or Admin. Is allowed for all permission and is not to exist in final product release but purely for testing.
|
||||
*/
|
||||
Log::debug("OPRET");
|
||||
$user = new \App\User();
|
||||
|
||||
$user->name_first = "Admin";
|
||||
$user->name_last = "Admin";
|
||||
$user->email = "admin@admin.local";
|
||||
$user->setPasswordAttribute("1234");
|
||||
$user->phone = 12345678;
|
||||
$user->phone = "12345678";
|
||||
|
||||
//Gives Administrator role to the Admin
|
||||
$user->assignRole("Administrator");
|
||||
|
||||
$user->save();
|
||||
|
||||
/**
|
||||
* A user is created as the Admin with the below fields.
|
||||
* Super User or Admin. Is allowed for all permission and is not to exist in final product release but purely for testing.
|
||||
*/
|
||||
$user = new \App\User();
|
||||
|
||||
$user->name_first = "X";
|
||||
$user->name_last = "X";
|
||||
$user->email = "x@x.x";
|
||||
$user->setPasswordAttribute("1");
|
||||
$user->phone = "12345679";
|
||||
|
||||
//Gives Administrator role to the Admin
|
||||
$user->assignRole("Administrator");
|
||||
|
||||
Reference in New Issue
Block a user