public static function hasMigrated(string $name){
        $res = DB::connection('default')->table('migrations')->where('name', $name)->first();
        return !is_null($res);
    }
public static function hasMigrated(string $name){
        $res = DB::connection('default')->table('migrations')->where('name', $name)->first();
        return !is_null($res);
    }
public static function hasMigrated ( string $ name ) { $ res = DB :: connection ( 'default' ) -> table ( 'migrations' ) -> where ( 'name' , $ name ) -> first ( ) ; return ! is_null ( $ res ) ; }
Checks if the given migration has been done already
@param string $name
@return bool
Checks if the given migration has been done already