Answers for "laravel up and down function in migration"

PHP
2

laravel make migration update table

php artisan make:migration add_paid_to_users_table --table=users
Posted by: Guest on July-20-2021
1

laravel run query migration

DB::statement("
    CREATE TABLE `your_table` (
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `status` tinyint(3) unsigned DEFAULT NULL,
        PRIMARY KEY (`id`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
");
Posted by: Guest on August-23-2021

Code answers related to "laravel up and down function in migration"

Browse Popular Code Answers by Language