I am learning and trying to use laravel 5.2, I am confusing how to add a field to a table.
I create a migration file named 2016_01_29_093417_create_thread_table.php, every time I want to add a field, I add code inside the file, for example
$table->string('content');
and then run the command
php artisan migrate:refresh
a new field will appear in the table, but the test data (for example, the user in the user table will be truncated)
Questions:
1) What is the correct way (best practice) to add a new field to the table? 2) how to save test data in all tables, for example, a user in a user table?
Does anyone know how to do this?