What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-04 15:38:13
laravel 6 migration add column to existing table
php artisan make:migration add_paid_to_users_table --table=users public function up() { Schema::table('users', function($table) { $table->integer('paid'); }); } public function down() { Schema::table('users', function($table) { ... Add solution -
PHP 2021-11-04 14:06:16
add column in laravel migration cmnd
php artisan make:migration add_paid_to_users_table --table=users public function up() { Schema::table('users', function($table) { $table->integer('paid'); }); } public function down() { Schema::table('users', function($table) { ... Add solution -
PHP 2021-10-10 06:23:05
laravel migration price
php artisan make:migration create_users_table Add solution -
PHP 2021-10-09 02:26:04
add column in exesting table
php artisan make:migration add_paid_to_users_table --table=users //You then need to use the Schema::table() method (as you're accessing an existing table, not creating a new one). And you can add a column like this: public function up() { Schema::ta... Add solution