PHP Class Caffeinated\Modules\Database\Migrations\Migrator

Inheritance: extends Illuminate\Database\Migrations\Migrator
Afficher le fichier Open project: caffeinated/modules

Protected Properties

Свойство Type Description
$table

Méthodes publiques

Méthode Description
__construct ( string $table, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Database\ConnectionResolverInterface $resolver, Illuminate\Filesystem\Filesystem $files ) Create a new migrator instance.
getRanMigrations ( ) : Collection Get all the ran migrations.
rollback ( array | string $paths = [], array $options = [] ) : array Rollback the last migration operation.

Method Details

__construct() public méthode

Create a new migrator instance.
public __construct ( string $table, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Database\ConnectionResolverInterface $resolver, Illuminate\Filesystem\Filesystem $files )
$table string
$repository Illuminate\Database\Migrations\MigrationRepositoryInterface
$resolver Illuminate\Database\ConnectionResolverInterface
$files Illuminate\Filesystem\Filesystem

getRanMigrations() public méthode

Get all the ran migrations.
public getRanMigrations ( ) : Collection
Résultat Illuminate\Support\Collection

rollback() public méthode

Rollback the last migration operation.
public rollback ( array | string $paths = [], array $options = [] ) : array
$paths array | string
$options array
Résultat array

Property Details

$table protected_oe property

protected $table