src/AbstractServiceProvider.php
final protected function publishFile($from, $to)
    {
        // If destination directory doesn't exist,
        // we'll create before copying the config files
        $directoryDestination = dirname($to);
        if (!$this->files->isDirectory($directoryDestination)) {
            $this->files->makeDirectory($directoryDestination, 0755, true);
        }

        // Copy file to application
        $this->files->copy($from, $to);

        // Output status message
        $this->getCommand()->line(
            sprintf('<info>Copied %s</info> <comment>[%s]</comment> <info>To</info> <comment>[%s]</comment>',
                'File', str_replace(base_path(), '', realpath($from)), str_replace(base_path(), '', realpath($to)))
        );
    }
final protected function publishFile($from, $to)
    {
        // If destination directory doesn't exist,
        // we'll create before copying the config files
        $directoryDestination = dirname($to);
        if (!$this->files->isDirectory($directoryDestination)) {
            $this->files->makeDirectory($directoryDestination, 0755, true);
        }

        // Copy file to application
        $this->files->copy($from, $to);

        // Output status message
        $this->getCommand()->line(
            sprintf('<info>Copied %s</info> <comment>[%s]</comment> <info>To</info> <comment>[%s]</comment>',
                'File', str_replace(base_path(), '', realpath($from)), str_replace(base_path(), '', realpath($to)))
        );
    }
final protected function publishFile ( $ from , $ to ) { // If destination directory doesn't exist, // we'll create before copying the config files $ directoryDestination = dirname ( $ to ) ; if ( ! $ this -> files -> isDirectory ( $ directoryDestination ) ) { $ this -> files -> makeDirectory ( $ directoryDestination , 0755 , true ) ; } // Copy file to application $ this -> files -> copy ( $ from , $ to ) ; // Output status message $ this -> getCommand ( ) -> line ( sprintf ( '<info>Copied %s</info> <comment>[%s]</comment> <info>To</info> <comment>[%s]</comment>' , 'File' , str_replace ( base_path ( ) , '' , realpath ( $ from ) ) , str_replace ( base_path ( ) , '' , realpath ( $ to ) ) ) ) ; }
Publish file to application.

@author Morten Rugaard <moru@nodes.dk>

@param string $from
@param string $to

@return void
Publish file to application .