Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel strictmode issues #2153

Open
CasSchuurman1 opened this issue Mar 31, 2025 · 1 comment
Open

Laravel strictmode issues #2153

CasSchuurman1 opened this issue Mar 31, 2025 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@CasSchuurman1
Copy link

  • Lunar version: 1.0.0-beta17
  • Laravel Version: 12
  • PHP Version: 8.3
  • Database Driver & Version: Postgresql 16.4

Expected Behaviour:

No errors after logging in the dashboard

Actual Behaviour:

When logging in this error will show up: The attribute [currency_code] either does not exist or was not retrieved for model [Lunar\Models\Order].

Steps To Reproduce:

Enable strict mode Laravel in the AppServiceProvider
Model::shouldBeStrict(!app()->isProduction());

Log in to your dashboard. The error shows up

On 02-09-2024, the error was already mentioned in Discord
Image

@CasSchuurman1 CasSchuurman1 added bug Something isn't working unconfirmed labels Mar 31, 2025
@CasSchuurman1 CasSchuurman1 changed the title The attribute [currency_code] either does not exist or was not retrieved for model [Lunar\Models\Order]. Laravel strictmode issues Mar 31, 2025
@CasSchuurman1
Copy link
Author

Also if the lazy loading is disabled. It also gives me an error when creating 2 root collections

Attempted to lazy load [thumbnail] on model [Lunar\Models\Collection] but lazy loading is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant