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

BY Best Interview Question ON 07 May 2020

Suggest An Answer