Query attribute always set null as default value
emsifa opened this issue · comments
Muhammad Syifa commented
Query attribute always set null default value instead of using default value assigned in parameter.
For example, if you have this in controller:
public function index(#[Query] ?int $page = 1)
{
dd($page);
}
If you request to it without page
query, dd
will shows null
instead of 1
.