Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Copies file
<?php copy(string $from, string $to, ?resource $context = null): bool
<?php     public function copy($path, $target)

    {

        return copy($path, $target);

    }
<?php         } else {

            $this->components->info('Published API routes file.');



            copy(__DIR__.'/stubs/api-routes.stub', $apiRoutesPath);



            if ($this->option('passport')) {

                (new Filesystem)->replaceInFile(
<?php         if (! file_exists($broadcastingRoutesPath = $this->laravel->basePath('routes/channels.php')) || $this->option('force')) {

            $this->components->info("Published 'channels' route file.");



            copy(__DIR__.'/stubs/broadcasting-routes.stub', $broadcastingRoutesPath);

        }



        $this->uncommentChannelsRoutesFile();
<?php                 mkdir($directory, 0755, true);

            }



            copy(__DIR__.'/stubs/echo-js.stub', $echoScriptPath);

        }



        if (file_exists($bootstrapScriptPath = $this->laravel->resourcePath('js/bootstrap.js'))) {
<?php             return;

        }



        copy($file, $destination);



        $this->components->info("Published '{$name}' configuration file.");

    }