Skip to content

[FEAT] Checkbox toggle for Model::shouldBeStrict #2005

@xtay2

Description

@xtay2

Background

I'm in the middle of migrating my legacy codebase to use the Model::shouldBeStrict(!app()->isProduction()) setting in the AppServiceProvider::boot method. Because this can't be done in a single commit / merge request, the setting is now set on the main branch, but interferes with all other branches for which I have to turn it off. It would be great to be able to toggle this setting on or off from the ui.

Feature description

Introduce a new tab in the debug bar that contains multiple checkboxes for all common development settings:

  • Model::preventLazyLoading
  • Model::preventAccessingMissingAttributes
  • Model::preventSilentlyDiscardingAttributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions