I tried to use two default value for a input with condition in blade:
<input type="text" class="form-control" id="wallet" name="wallet" value="{{old('wallet') or 0}}">
I want the old() to be use when the inputs value is incorrect and the other should be used when the page is open for the first time and for is not submitted yet, but when i run the code the 0 as default value is not set in input.Where is the problem?