Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Asset Laravel Package

scafera/asset

Scafera Asset is a lightweight Laravel package for managing application assets. It offers a simple API to register, organize, and publish CSS, JavaScript, and media files, with helpers for generating cache-friendly, versioned asset URLs in your Blade views.

View on GitHub
Deep Wiki
Context7

Asset management for the Scafera framework

Frequently asked questions about Asset
What is scafera/asset used for?
Scafera Asset is a lightweight Laravel package for application asset management. It lets you register, organize, and publish CSS, JavaScript, and media files, and it provides helpers for generating cache-friendly, versioned asset URLs in Blade views.
How do I install scafera/asset in Laravel?
Install it with Composer using composer require scafera/asset. Then follow the package README for any service provider registration or configuration publishing steps needed for your Laravel version. Laravel package auto-discovery may handle provider registration, but confirm in the documentation.
Which Laravel versions does scafera/asset support?
The package is described as a Laravel package, but the provided context does not list specific Laravel version constraints. Check the composer.json file and README in the GitHub repository for the supported PHP and Laravel versions. Use those constraints before adding it to a production project.
Where do I configure scafera/asset?
Configuration details are not included in the provided excerpt. Check the README for whether the package publishes a config file or uses package-level defaults. If a config file is published, keep environment-specific paths and publishing options out of version control as appropriate.
How do I register CSS and JavaScript files with scafera/asset?
Scafera Asset exposes a simple API for registering CSS, JavaScript, and media assets. The exact method names and registration syntax should be taken from the README, since the package documentation defines the available API. Once registered, you can reference the assets through the package's Blade helpers.
How does scafera/asset generate versioned asset URLs?
The package provides helpers for generating cache-friendly, versioned asset URLs in Blade views. Versioned URLs help browsers fetch updated files when assets change, reducing stale cache issues. See the README for the exact helper names and versioning configuration.
Can I use scafera/asset with Blade templates?
Yes. The package is designed to provide helpers for generating asset URLs in Blade views. You can use those helpers where you would normally output CSS, JavaScript, or media URLs. Check the README for the exact Blade syntax.
Does scafera/asset replace Laravel Mix or Vite?
No, it should not be treated as a replacement for a bundler like Laravel Mix or Vite. Scafera Asset focuses on registering, organizing, publishing, and generating versioned URLs for assets. You can still use your preferred build tool for compiling and bundling front-end files.
How do I publish assets to the public directory with scafera/asset?
Publishing CSS, JavaScript, and media files is part of the package's stated functionality. The README should document the exact publish command or API to use. Follow those instructions so the files are available at the URLs generated by the helpers.
How do I test asset URLs generated by scafera/asset?
Use Laravel's HTTP and view tests to assert that your Blade views render the expected asset URLs. Because the package generates URLs through helpers, you can test the rendered HTML rather than internal implementation details. Also verify that versioned URLs change when the underlying asset changes, according to the package's documented behavior.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource