You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method `toSelectable` is used to convert the collection into a `Selectable` object. The `Selectable` object has several methods that allow you to customize the options and their properties.
-`toSelectable()`: This method returns the current selectable object.
85
+
-`withLabel(string|callable $label)`: This method allows you to customize the label for each option. A string will be used as the collection field from which the label will be generated, while a callable will be used to generate the label.
86
+
-`withValue(string|callable $value)`: This method allows you to customize the value for each option. A string will be used as the collection field from which the value will be generated, while a callable will be used to generate the value.
87
+
-`withSelected(mixed|callable $selected)`: This method allows you to customize the selected options. Can be a `string`, `int`, an array of `string`/`int`, a `model` or a callable that returns a boolean value.
88
+
-`withDisabled(mixed|callable $disabled)`: This method allows you to customize the disabled options. Can be a `string`, `int`, an array of `string`/`int`, a `model` or a callable that returns a boolean value.
89
+
-`toSelectOptions()`: This method converts the selectable collection to an HTML select options string.
90
+
-`toSelectItems()`: This method converts the selectable collection to an array of selectable items. Useful for Ajax responses or SPA.
91
+
-
92
+
67
93
> <small><strong>Note:</strong> Writing queries within blade templates is not recommended. This is only for simplifying demonstration</small>
Copy file name to clipboardExpand all lines: SECURITY.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Supported Versions
4
4
5
-
The following versions of laravel process approval package are
5
+
The following versions of laravel selectable package are
6
6
currently being supported with security updates.
7
7
8
8
| Version | Supported |
@@ -11,7 +11,7 @@ currently being supported with security updates.
11
11
12
12
## Reporting a Vulnerability
13
13
14
-
We take the security of the Laravel Process Approval package seriously. If you have discovered a vulnerability, we appreciate your assistance in disclosing it responsibly. This ensures that we can address and resolve the issue promptly to maintain the security of our users.
14
+
We take the security of the Laravel Selectable package seriously. If you have discovered a vulnerability, we appreciate your assistance in disclosing it responsibly. This ensures that we can address and resolve the issue promptly to maintain the security of our users.
15
15
16
16
### Reporting Process
17
17
To report a vulnerability, please follow these steps:
@@ -29,7 +29,7 @@ We strive to acknowledge all vulnerability reports promptly. Our team will revie
29
29
30
30
### Vulnerability Handling
31
31
#### Accepted Vulnerabilities
32
-
If the reported vulnerability is accepted, we will work on a fix and release a new version of the Laravel Process Approval package. We will credit you for the responsible disclosure unless you prefer to remain anonymous.
32
+
If the reported vulnerability is accepted, we will work on a fix and release a new version of the Laravel Selectable package. We will credit you for the responsible disclosure unless you prefer to remain anonymous.
33
33
34
34
#### Declined Vulnerabilities
35
35
If the reported vulnerability is deemed not to be a valid issue, we will provide a detailed explanation of our findings. You can appeal our decision if you believe there has been a misunderstanding.
@@ -40,4 +40,4 @@ We understand the sensitivity of security-related information. We will handle al
40
40
### Responsible Disclosure
41
41
We appreciate your responsible disclosure of security vulnerabilities. We encourage you to avoid publicizing the vulnerability until we have had an opportunity to address it. We will keep you informed of the progress and coordinate the public disclosure timeline.
42
42
43
-
Thank you for helping us keep Laravel Process Approval secure for everyone. Your efforts contribute to the safety and well-being of our user community.
43
+
Thank you for helping us keep Laravel Selectable secure for everyone. Your efforts contribute to the safety and well-being of our user community.
0 commit comments