public static function getLastMigration(App $app){
        $res = DB::connection('default')->table('migrations')->orderBy('id', 'desc')->first();
        if (is_null($res) || !$app->hasMigration($res->name)){
            return false;
        }
        return $res->name;
    }
public static function getLastMigration(App $app){
        $res = DB::connection('default')->table('migrations')->orderBy('id', 'desc')->first();
        if (is_null($res) || !$app->hasMigration($res->name)){
            return false;
        }
        return $res->name;
    }
public static function getLastMigration ( App $ app ) { $ res = DB :: connection ( 'default' ) -> table ( 'migrations' ) -> orderBy ( 'id' , 'desc' ) -> first ( ) ; if ( is_null ( $ res ) || ! $ app -> hasMigration ( $ res -> name ) ) { return false ; } return $ res -> name ; }
Returns the last migration-name, which has been done
@param App $app CDL Application instance
@return string|bool migration name or false if no migrations have been found
Returns the last migration - name which has been done