Level 14
$newName = Auth::user()->name . $fileName;
// . . .
$request->file('gambar')->move("image/", $newName);
$file = $request->file('gambar');
$fileName = $file->getClientOriginalName();
$request->file('gambar')->move("image/", $fileName);
$tambah->gambar = Str::slug($request->get('name')). $fileName;
$tambah->save();
for example i am upload a file with name 1505972507-picsay.jpg (original filename)
and then in image folder changed into teguh-rijanandi1505972507-picsay.jpg? (after upload)
where i must modified the code?
note:
Please or to participate in this conversation.