how to check linux os
cat /etc/os-release
or
hostnamectl
laravel 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) {
$table->dropColumn('paid');
});
}
php artisan migrate
add another field in existing migration laravel
php artisan make:migration add_paid_to_users_table --table=users
add column in laravel migration cmnd
php artisan make:migration add_paid_to_users_table --table=users
add column to migration laravel
php artisan make:migration add_profile_to_users
migrations required field laravel
$table->string('foo')->nullable(false)->change();
add new column in existing table in laravel migration
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us