I have a registration form that will get data from users and send it to database
here is one of the inputs in the view page:
<div style="font-family: Frutiger;" class="mt-4 text-right">
<x-jet-label for="name" value="{{ __(' * First Name') }}" />
<x-jet-input id="name" class="block mt-1 w-full text-right border" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
</div>
so i want to make this input optional and be able to submit the form without any value but if its left empty i want the default value to be for example "name"
is there any solution for this through this code or through Mysql?
Maybe you have something like this in your controller that form data sent:
You should erase
'name' => 'required'from this.But if you get database error you should add this to your migration: