PHP Class Caffeinated\Modules\Database\Migrations\Migrator

Inheritance: extends Illuminate\Database\Migrations\Migrator
Datei anzeigen Open project: caffeinated/modules

Protected Properties

Property Type Description
$table

Public Methods

Method 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 method

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 method

Get all the ran migrations.
public getRanMigrations ( ) : Collection
return Illuminate\Support\Collection

rollback() public method

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

Property Details

$table protected_oe property

protected $table