AssetPublisher
class AssetPublisher (View source)
Properties
protected Filesystem | $files | The filesystem instance. | |
protected string | $publishPath | The path where assets should be published. | |
protected string | $packagePath | The path where packages are located. |
Methods
void | __construct(Filesystem $files, string $publishPath) Create a new asset publisher instance. | |
bool | publish(string $name, string $source) Copy all assets from a given path to the publish path. | |
bool | publishPackage(string $package, string $packagePath = null) Publish a given package's assets to the publish path. | |
void | setPackagePath(string $packagePath) Set the default package path. |
Details
void __construct(Filesystem $files, string $publishPath)
Create a new asset publisher instance.
bool publish(string $name, string $source)
Copy all assets from a given path to the publish path.
bool publishPackage(string $package, string $packagePath = null)
Publish a given package's assets to the publish path.
void setPackagePath(string $packagePath)
Set the default package path.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/AssetPublisher.html