You can easily check for the existence of a table or column using the hasTable and hasColumn function of laravel

Checking For Existence Of Table

if (Schema::hasTable(‘users’))
{
//
}

Checking For Existence Of Column

if (Schema::hasColumn(‘users’, ’email’))
{
//
}

News Reporter
IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code