Method |
Description |
|
__construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\Config\Repository $config, Illuminate\View\Factory $viewFactory ) |
Constructor method. |
|
all ( ) : Illuminate\Database\Eloquent\Collection |
Get all themes. |
|
asset ( $asset ) : string |
Generate a HTML link to the given asset using HTTP for the
currently active theme. |
|
exists ( string $theme ) : boolean |
Check if given theme exists. |
|
getActive ( ) : string |
Gets active theme. |
|
getJsonContents ( string $theme ) : array | mixed |
Get theme JSON content as an array. |
|
getJsonPath ( string $theme ) : string |
Get path of theme JSON file. |
|
getLayout ( ) : string |
Get theme layout. |
|
getPath ( ) : string |
Gets themes path. |
|
getProperty ( string $property, null | string $default = null ) : mixed |
Get a theme manifest property value. |
|
getThemePath ( string $theme ) : string |
Gets the specified themes path. |
|
getView ( string $view ) : string | null |
Gets the given view file. |
|
register ( ) : null |
Register custom namespaces for all themes. |
|
registerNamespace ( string $theme ) : null |
Register custom namespaces for specified theme. |
|
response ( string $view, array $data = [], integer $status = 200, array $headers = [] ) : Response |
Return a new theme view response from the application. |
|
secureAsset ( $asset ) : string |
Generate a HTML link to the given asset using HTTPS for the
currently active theme. |
|
setActive ( $theme ) : Themes |
Sets active theme. |
|
setJsonContents ( string $theme, array $content ) : integer |
Set theme manifest JSON content property value. |
|
setLayout ( $layout ) : Themes |
Sets theme layout. |
|
setPath ( string $path ) : self |
Sets themes path. |
|
setProperty ( string $property, mixed $value ) : boolean |
Set a theme manifest property value. |
|
view ( string $view, array $data = [] ) : View |
Render theme view file. |
|
viewExists ( string $view ) : boolean |
Checks if the given view file exists (anywhere). |
|