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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

3 participants