I’m new to laravel framework. For making a blog URL’s to SEO friendly, I need to add an extra column to the existing blog tables for the laravel website. Can we directly add a column to a table directly in the database or not? Can we add a column without commands or migrations? Would you please suggest an easy method to add the column?
2
Answers
Better is to add at migration level but if you want to directly add at DB level that is also an option. But update migration as well so that it will have all the columns.
Add migration
Code methods migration
Run migration