LARAVEL: How to rename a table column with migrations preserving data

Is it possible to alter your data structure without losing any data?

Yes, you can! And it's pretty straightforward.

Credits and image licensing

As stated in Laravel manual:

To rename a column, you may use the renameColumn method on the Schema builder. Before renaming a column…