class
Illuminate
/
Foundation
/
Console
/
VendorPublishCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
VendorPublishCommand
Extends
Properties
protected
$provider string
The provider to publish.
Default: null
protected
$tags array
The tags to publish.
Default: []
protected
$signature string
The console command signature.
Default: 'vendor:publish {--force : Overwrite any existing files}
{--all : Publish assets for all service providers without prompt}
{--provider= : The service provider that has assets you want to publish}
{--tag=* : One or many tags that have assets you want to publish}'
protected
$description string
The console command description.
Default: 'Publish any publishable assets from vendor packages'
Methods
public
__construct ( Filesystem $files ) : void
Create a new command instance.
Parameters
- $files Filesystem
public
handle ( ) : void
Execute the console command.
protected
determineWhatShouldBePublished ( ) : void
Determine the provider or tag(s) to publish.
protected
promptForProviderOrTag ( ) : void
Prompt for which provider or tag to publish.
protected
publishableChoices ( ) : array
The choices available via the prompt.
protected
parseChoice ( $choice ) : void
Parse the answer that was given via the prompt.
Parameters
- $choice string
protected
publishTag ( $tag ) : mixed
Publishes the assets for a tag.
Parameters
- $tag string
protected
pathsToPublish ( $tag ) : array
Get all of the paths to publish.
Parameters
- $tag string
protected
publishItem ( $from , $to ) : void
Publish the given item from and to the given location.
Parameters
- $from string
- $to string
protected
publishFile ( $from , $to ) : void
Publish the file to the given path.
Parameters
- $from string
- $to string
protected
publishDirectory ( $from , $to ) : void
Publish the directory to the given directory.
Parameters
- $from string
- $to string
protected
moveManagedFiles ( $manager ) : void
Move all the files in the given MountManager.
Parameters
- $manager League\...\MountManager
protected
createParentDirectory ( $directory ) : void
Create the directory to house the published files if needed.
Parameters
- $directory string
protected
status ( $from , $to , $type ) : void
Write a status message to the console.
Parameters
- $from string
- $to string
- $type string