Skip to content

Read the assets config where the provider registers it - #13

Merged
imanimanyara merged 1 commit into
mainfrom
fix/read-config-at-registered-key
Oct 3, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
fix/read-config-at-registered-key

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

The provider merges the defaults into laranail.assets, but Assets read the
bare assets key, which nothing populates on a fresh install. Resolving
Assets therefore threw "Trying to access array offset on null", and every
documented call failed unless the config had been published. Separately,
addStyles() merged into the script list, so a stylesheet rendered as a

<script> tag. Assets now reads laranail.assets. A config already published to the old bare config/assets.php is still honoured, as a deprecated fallback, so nobody the package worked for sees a change. The publish tag now writes config/laranail/assets.php, and the default is merged in register() so it exists before other providers boot. Each test was seen failing with its fix reverted: the config-key revert fails 3 of 6, and the addStyles revert fails 1. The README gains the Quick start that depended on this fix.

The provider merges the defaults into laranail.assets, but Assets read the
bare `assets` key, which nothing populates on a fresh install. Resolving
Assets therefore threw "Trying to access array offset on null", and every
documented call failed unless the config had been published. Separately,
addStyles() merged into the script list, so a stylesheet rendered as a
<script> tag.

Assets now reads laranail.assets. A config already published to the old
bare config/assets.php is still honoured, as a deprecated fallback, so
nobody the package worked for sees a change. The publish tag now writes
config/laranail/assets.php, and the default is merged in register() so it
exists before other providers boot.

Each test was seen failing with its fix reverted: the config-key revert
fails 3 of 6, and the addStyles revert fails 1. The README gains the
Quick start that depended on this fix.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imanimanyara
imanimanyara merged commit cc414dd into main Oct 3, 2026
6 checks passed
@imanimanyara
imanimanyara deleted the fix/read-config-at-registered-key branch October 3, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants