Friday, 18 August 2017

Create New Column In Database tables In Laravel5.3 With Php

Here is the php artisan command for Create New Column In Database tables In Laravel5.3

php artisan make:migration add_Image_to_users
after it check the add_Image_to_users.php files in database migration folder and add below code
public function up()
{
    Schema::table('users', function($table) {
        $table->string('image');
    });
}
After it run below command:
php artisan migrate

No comments:

Post a Comment

Google Map Filter Api Example

Here is Google Map Filter Api Example: