Skip to content

Add documentation for new closure support#126

Merged
simonhamp merged 1 commit into
mainfrom
update-settings-add-closure
May 23, 2025
Merged

Add documentation for new closure support#126
simonhamp merged 1 commit into
mainfrom
update-settings-add-closure

Conversation

@PeteBishwhip
Copy link
Copy Markdown
Member

Docs Update for NativePHP/laravel#562

This pull request updates the documentation for the Settings::get method to clarify the use of default values and provide an example of using a closure as a default.

Documentation updates:

  • resources/views/docs/desktop/1/the-basics/settings.md: Enhanced the explanation of the Settings::get method to include the option of providing a closure as a default value. Added an example demonstrating how to use a closure and clarified the behavior when no default value is provided (returns null).

@PeteBishwhip PeteBishwhip requested a review from a team May 8, 2025 09:23
@simonhamp simonhamp merged commit b4ebf02 into main May 23, 2025
1 check passed
@steven-fox steven-fox deleted the update-settings-add-closure branch June 1, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants