Skip to content

Theme assets

İsa Eken edited this page Oct 2, 2021 · 1 revision

Enabling or disabling assets

You can turn this feature on or off by changing the "assets" value in the "/config/theme-system.php" file.

Adding assets

Copy/add your assets to "resources/themes/your-theme-name/public"

You can change the name of the "public" folder by changing the public_directory value in the "/config/theme-system.php" file.

Publishing assets

You can publish assets to global using the "php artisan theme:publish" command.

Note: This operation requires the "symlink" function. Don't forget to check that this feature is turned on.

Getting asset url's

When this feature is enabled, the "asset" and "secure_asset" functions are rewritten. You can use it as Laravel's default.

Clone this wiki locally