How to check column is exists or not in a table using Laravel?

if(Schema::hasColumn('admin', 'username')) ; //check whether admin table has username column { // write your logic here }

Popular posts from this blog

Ajax Toggle(on/off) on-click Update

Yii Framework In Update Time View Image In Form