PHP Класс Laratrust\MigrationCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$description string The console command description.
$migrationSuffix string Suffix of the migration name.
$name string The console command name.

Открытые методы

Метод Описание
fire ( ) : void Execute the console command.

Защищенные методы

Метод Описание
alreadyExistingMigrations ( ) : array Check if there is another migration with the same suffix.
createMigration ( ) : boolean Create the migration.
generateMigrationMessage ( string $rolesTable, string $roleUserTable, string $permissionsTable, string $permissionRoleTable, $permissionUserTable ) : string Generate the message to display when running the console command showing what tables are going to be created.
getExistingMigrationsWarning ( array $existingMigrations ) : string Build a warning regarding possible duplication due to already existing migrations
getMigrationPath ( string | null $date = null ) : string Get the migration path.

Описание методов

alreadyExistingMigrations() защищенный Метод

Check if there is another migration with the same suffix.
protected alreadyExistingMigrations ( ) : array
Результат array

createMigration() защищенный Метод

Create the migration.
protected createMigration ( ) : boolean
Результат boolean

fire() публичный Метод

Execute the console command.
public fire ( ) : void
Результат void

generateMigrationMessage() защищенный Метод

Generate the message to display when running the console command showing what tables are going to be created.
protected generateMigrationMessage ( string $rolesTable, string $roleUserTable, string $permissionsTable, string $permissionRoleTable, $permissionUserTable ) : string
$rolesTable string
$roleUserTable string
$permissionsTable string
$permissionRoleTable string
Результат string

getExistingMigrationsWarning() защищенный Метод

Build a warning regarding possible duplication due to already existing migrations
protected getExistingMigrationsWarning ( array $existingMigrations ) : string
$existingMigrations array
Результат string

getMigrationPath() защищенный Метод

The date parameter is optional for ability to provide a custom value or a wildcard.
protected getMigrationPath ( string | null $date = null ) : string
$date string | null
Результат string

Описание свойств

$description защищенное свойство

The console command description.
protected string $description
Результат string

$migrationSuffix защищенное свойство

Suffix of the migration name.
protected string $migrationSuffix
Результат string

$name защищенное свойство

The console command name.
protected string $name
Результат string