/** * Run the database seeds. * Use php artisan db:seed to run the seed files. * * @return void */ public function run() { $user = User::create(['name' => 'admin', 'email' => '*****@*****.**', 'password' => Hash::make('1q2w3e')]); Device::create(['device_uuid' => 'test', 'model' => 'test', 'manufacturer' => 'test', 'user_id' => $user->id]); $user->roles()->attach([1]); }