0
The problem is that the input type text is sending the date value to the Mysql Database in the following format DD/MM/YYYY, but Mysql only accepts a text for the date format if it is in the following format YYYY-MM-DD or YYYYMMDD.
Code of my input:
<input class="form-control datepicker form-control-alternative{{ $errors->has('birth_date') ? ' is-invalid' : '' }}" name="birth_date" id="input-birth_date" placeholder="Informe sua data de nascimento" type="text" value="{{ old('birth_date') }}" required autofocus>
Code of variable in person function:
protected $fillable = [
'birth_date',
];
Thanks in advance!
The following error is presented to me:
Argument 1 passed to App\People::App\{closure}() must be an instance of App\AccountCreation, instance of App\People given, called in C:\wamp64\www\SIGASS\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php on line 347
– Calebe Pereira
Accountcreation -> put your model’s class!
– Brendo Vale