public function has($tableName)
    {
        $capsules = $this->all();

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                return true;
            }
        }

        return false;
    }
public function has($tableName)
    {
        $capsules = $this->all();

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                return true;
            }
        }

        return false;
    }
public function has ( $ tableName ) { $ capsules = $ this -> all ( ) ; foreach ( $ capsules as $ capsule ) { if ( $ capsule -> tableName == $ tableName ) { return true ; } } return false ; }
Checks if a migration tracker exists for a given datatable

@param string $tableName

@return bool
Checks if a migration tracker exists for a given datatable