1.

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

Answer»

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



Discussion

No Comment Found