. */ namespace Database\Seeders; use App\Profile; use App\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /** * Rationale: * A ghost account is an account used by deleted users. * Essentially, when users are deleted, their content is re-assigned to the * ghost account. * Also used by one-off apps. * * The ghost account was inspired by Github's ghost account. */ $ghostAccount = User::create([ 'uuid' => '069a79f444e94726a5befca90e38aaf5', // Notch 'name' => 'Ghost (deleted account)', 'email' => 'blackhole@spacejewel-hosting.com', 'username' => 'ghost', 'originalIP' => '0.0.0.0', 'password' => 'locked' ])->assignRole('user'); // There can't be role-less users $admin = User::create([ 'uuid' => '6102256abd284dd7b68e4c96ef313734', 'name' => 'Admin', 'email' => 'admin@example.com', 'username' => 'admin', 'originalIP' => '217.1.189.34', 'password' => Hash::make('password'), ])->assignRole([ // all privileges 'user', 'reviewer', 'admin', 'hiringManager', 'developer' ]); } }