public function all()
    {
        $rawCapsules = json_decode($this->read(), true);
        $capsules = [];

        foreach ($rawCapsules as $rawCapsule) {
            $capsules[] = new MigrationTrackerCapsule($rawCapsule);
        }

        return $capsules;
    }
public function all()
    {
        $rawCapsules = json_decode($this->read(), true);
        $capsules = [];

        foreach ($rawCapsules as $rawCapsule) {
            $capsules[] = new MigrationTrackerCapsule($rawCapsule);
        }

        return $capsules;
    }
public function all ( ) { $ rawCapsules = json_decode ( $ this -> read ( ) , true ) ; $ capsules = [ ] ; foreach ( $ rawCapsules as $ rawCapsule ) { $ capsules [ ] = new MigrationTrackerCapsule ( $ rawCapsule ) ; } return $ capsules ; }
Gets all the migration capsules from the file.

@return array
Gets all the migration capsules from the file .