ViewPublisher

class ViewPublisher (View source)

Properties

protected Filesystem $files The filesystem instance.
protected string $publishPath The destination of the view files.
protected string $packagePath The path to the application's packages.

Methods

void __construct(Filesystem $files, string $publishPath)

Create a new view publisher instance.

void publish(string $package, string $source)

Publish view files from a given path.

void publishPackage(string $package, string $packagePath = null)

Publish the view files for a package.

string getSource(string $package, string $packagePath)

Get the source views directory to publish.

void makeDestination(string $destination)

Create the destination directory if it doesn't exist.

void setPackagePath(string $packagePath)

Set the default package path.

Details

void __construct(Filesystem $files, string $publishPath)

Create a new view publisher instance.

Parameters

Filesystem $files
string $publishPath

Return Value

void

void publish(string $package, string $source)

Publish view files from a given path.

Parameters

string $package
string $source

Return Value

void

void publishPackage(string $package, string $packagePath = null)

Publish the view files for a package.

Parameters

string $package
string $packagePath

Return Value

void

protected string getSource(string $package, string $packagePath)

Get the source views directory to publish.

Parameters

string $package
string $packagePath

Return Value

string

Exceptions

InvalidArgumentException

protected void makeDestination(string $destination)

Create the destination directory if it doesn't exist.

Parameters

string $destination

Return Value

void

void setPackagePath(string $packagePath)

Set the default package path.

Parameters

string $packagePath

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/ViewPublisher.html