Orangehill\Iseed\Iseed::hasTable PHP Method

hasTable() public method

Checks if a database table exists
public hasTable ( string $table ) : boolean
$table string
return boolean
    public function hasTable($table)
    {
        return \Schema::connection($this->databaseName)->hasTable($table);
    }

Usage Example

Beispiel #1
0
 /**
  * Checks if a database table exists
  *
  * @param string $table
  * @return boolean 
  * @static 
  */
 public static function hasTable($table)
 {
     return \Orangehill\Iseed\Iseed::hasTable($table);
 }