Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB::table('users')->delete();
- // Super Admin
- $superAdmin = new \App\User();
- $superAdmin->name = 'Mr. Super Admin';
- $superAdmin->email = 'super.admin@gmail.com';
- $superAdmin->password = bcrypt('haha1234');
- $superAdmin->ic_number = '80080808888';
- $superAdmin->role = 'super_admin';
- $superAdmin->access_power = 10000;
- $superAdmin->avatar = '/images/user/super_admin.png';
- $superAdmin->status = 'active';
- $superAdmin->save();
- // survey
- $admin = new \App\User();
- $admin->name = 'Mr. Admin';
- $admin->email = 'survey@gmail.com';
- $admin->password = bcrypt('haha1234');
- $admin->ic_number = '800707077777';
- $admin->role = 'survey_officer';
- $admin->access_power = 5000;
- $admin->status = 'active';
- $admin->save();
- // editor
- $admin = new \App\User();
- $admin->name = 'Mr. Admin Ministry';
- $admin->email = 'editor@gmail.com';
- $admin->password = bcrypt('haha1234');
- $admin->ic_number = '800707076666';
- $admin->role = 'editor';
- $admin->access_power = 1000;
- $admin->status = 'active';
- $admin->save();
- // user
- $user = new \App\User();
- $user->name = 'Mr. User';
- $user->email = 'user@gmail.com';
- $user->password = bcrypt('haha1234');
- $user->ic_number = '800707071111';
- $user->role = 'top_mgmt';
- $user->access_power = 100;
- $user->status = 'active';
- $user->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement