src/Commands/PublishConfigCommand.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle()
    {
        $operationWasSuccessful = (new Publisher($this))->publishFile(
            source: realpath(__DIR__.'/../../config/').'/locale.php',
            destinationPath: base_path('config'),
            fileName: 'locale.php',
            overwriteFile: $this->option('force')
        );
        if ($operationWasSuccessful) {
            $this->info('Configuration published!');
        } else {
            $this->error('Configuration NOT published!');
        }
    }
public function handle ( ) { $ operationWasSuccessful = ( new Publisher ( $ this ) ) -> publishFile ( source : realpath ( __DIR__ . '/../../config/' ) . '/locale.php' , destinationPath : base_path ( 'config' ) , fileName : 'locale.php' , overwriteFile : $ this -> option ( 'force' ) ) ; if ( $ operationWasSuccessful ) { $ this -> info ( 'Configuration published!' ) ; } else { $ this -> error ( 'Configuration NOT published!' ) ; } }
Execute the console command.
Execute the console command .