Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Queue/Console/BatchesTableCommand.php
Строк: 49
<?php

namespace IlluminateQueueConsole;

use 
IlluminateConsoleMigrationGeneratorCommand;
use 
SymfonyComponentConsoleAttributeAsCommand;

#[AsCommand(name: 'queue:batches-table')]
class BatchesTableCommand extends MigrationGeneratorCommand
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'queue:batches-table';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Create a migration for the batches database table';

    
/**
     * Get the migration table name.
     *
     * @return string
     */
    
protected function migrationTableName()
    {
        return 
$this->laravel['config']['queue.batching.table'] ?? 'job_batches';
    }

    
/**
     * Get the path to the migration stub file.
     *
     * @return string
     */
    
protected function migrationStubFile()
    {
        return 
__DIR__.'/stubs/batches.stub';
    }
}
Онлайн: 1
Реклама