ef11b7dd2fe7561bb77a5abf657f0d8e7bd19d56
`getSelectedValue` returns always true if it receives a value (from an select input) of 0. To avoid that the strict parameter has to be set to true.
This is because the following code does not work as might expected:
<?php
// check if 0 is in the array [1 => "c16"]
var_dump(in_array(0, [1=>"c16"])); // returns true
Forms & HTML
Official documentation for Forms & Html for The Laravel Framework can be found at the LaravelCollective website.
Description
HTML y Form Builders para Laravel 11, 12 y 13 (fork mantenido de laravelcollective/html)
620 KiB
0 Stars
2 Watchers
0 Forks