['admin', 'driver', 'mitra'], ]; foreach ($dump['name'] as $key => $value) { $role = new Roles; $role->name = $value; $role->guard_name = 'web'; $role->save(); } } public function down() { } }