-1

I am doing this in my table

$table->float('overs');

But It showing this Show image

Shahed Khan
  • 67
  • 11
  • 1
    Does this answer your question? [Is there a float input type in HTML5?](https://stackoverflow.com/questions/19011861/is-there-a-float-input-type-in-html5) – Don't Panic Nov 25 '21 at 07:18

1 Answers1

-1

I have solved it by doing:

<input type="float" name="overs" class="form-control" placeholder="ওভার">
Don't Panic
  • 13,965
  • 5
  • 32
  • 51
Shahed Khan
  • 67
  • 11
  • [`float` is not a valid input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). My guess is this works for you only bcs `type="float"` is unrecognised, so it is treated as a plain text input. – Don't Panic Nov 25 '21 at 07:16
  • but it`s working well and I am doing also math with this. Do you know any other alternative way? – Shahed Khan Nov 25 '21 at 07:38
  • I described my guess as to why it works - does typing “abc” work? Yes there’s an alternative, see the duplicate question I linked above. – Don't Panic Nov 25 '21 at 07:43
  • abc is not working thanks for helps. Can you help me whith this problem. Please remove ans is not useful https://stackoverflow.com/questions/70106421/how-to-replace-in-laravel-8 – Shahed Khan Nov 25 '21 at 08:01
  • I edited your question to make that input a runnable snippet. Click "run" to see - typing "abc" **does** work, which means that `type=float` is *not* working. If `type=float` was valid, you would not be able to type anything except a float there. – Don't Panic Nov 26 '21 at 21:15
  • If you agree, I suggest deleting your answer, since it is incorrect and will just confuse future visitors who have the same problem who do not read the comments. – Don't Panic Nov 26 '21 at 21:16