Skip to content
Advertisement

Check If a Column Exists in Laravel Migration File

Already I have a table name table_one. Now I want to add two more columns to it. Everything works fine so far. But in my method, I want to check a column exists or not in my table like dropIfExists('table').

Advertisement

Answer

You need something just like this

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement