public function up(Schema $schema) { $tablesToDrop = ['LastNotification', 'Event', 'Session', 'PrintingJobConfiguration', 'PrintingJob']; foreach ($tablesToDrop as $table) { if ($schema->hasTable($table)) { $schema->dropTable($table); } } }