Skip to content

Add documentation for new closure support #126

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

PeteBishwhip
Copy link
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