Answers for "laravel update db with migrate"

PHP
2

how to commit changes in git command

git commit -a
Posted by: Guest on April-14-2020
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

Browse Popular Code Answers by Language