does your file get uploaded to the filesystem.
Do you have enctype="multipart/form-data" in your form declaration?
Do you have validation rules for the file upload?
I have this code in the controller - Home - store function
$this->validate($request, [
///
]);
$homes = Houses::query()->create([
'///
]
);
if ($request->hasFile('passport'))
{
$homes->update(['passport' => $request->file('passport')
->store('passport', 'public')]);
}
When I go to the page with the creation of a house card, I fill in all the fields and select a test document (word) and try to load it. But: the card itself is successfully created in the database, but the passport field (where the document that I uploaded should be stored) is empty, besides, Laravel will not give any errors when creating a card at home.
What have I done wrong ? Why can't I upload a document to this field?
Please or to participate in this conversation.