We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Conditionally showing items show:
You can conditionally show things using the showIf method. If you pass a truthy value, the item will be displayed.
showIf
ray('will be shown')->showIf(true); ray('will not be shown')->showIf(false);
You can also pass a callable to showIf. If the callable returns a truthy value, it will be shown. Otherwise, it will not.
But showIf is marked deprectaed.
/** * @deprecated Use `if` instead of this method */ public function showIf($boolOrCallable): self { return $this->showWhen($boolOrCallable); }
Versions Ray version (you can see this in "About Ray"): Versión 2.7.5 (2.7.5)
You can use composer show to get the version numbers of:
composer show
PHP version: 8.2.17 (cli) Laravel version (if applicable): 10.48.4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Conditionally showing items show:
Conditionally showing items
You can conditionally show things using the
showIf
method. If you pass a truthy value, the item will be displayed.You can also pass a callable to showIf. If the callable returns a truthy value, it will be shown. Otherwise, it will not.
But
showIf
is marked deprectaed.Versions
Ray version (you can see this in "About Ray"): Versión 2.7.5 (2.7.5)
You can use
composer show
to get the version numbers of:PHP version: 8.2.17 (cli)
Laravel version (if applicable): 10.48.4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: