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