Hello everyone,
I am a newbie in laravel livewire. Recently I am working on a project where I need to save user photos with other data using livewire. But when I submit the form, then the following error occurred.
C:/Users/Anis/AppData/Local/Temp/phpE8A0.tmp 404 (Not Found)
Here is my frontend code:
 }})
And here is the backend code:
use WithFileUploads;
public $fullnames,$email,$gender,$mobile_number,$joining_date;
public $currency,$address,$country;
public $user_photo;
protected $rules = [
'fullnames' => 'required',
'email' => 'required|email|unique:users',
'mobile_number' => 'required|min:11|max:11',
'joining_date' => 'required',
'address' => 'required|min:20'
];
public function __construct()
{
$this -> countries = countries();
$this -> image = 'assets/default_photo.jpg';
}
public function submit()
{
$this -> validate();
}
Please help me. Thanks in advance.