Cara Upload File Sederhana Dengan Laravel
Buat Form
<form method="POST" enctype="multipart/form-data" >
<input type="file" class="form-control" name="csv"><br>
<input type="submit" value="Upload" class="btn btn-info">
@csrf
</form>
Controller
$request->file('csv')->storeAs('data', "mahasiswa.csv");
Tersimpan di folder storage/date/mahasiswa.csv
Lanjut Part : 1
Jam : 20:15:26
Durasi Part : 0:0:1
Durasi Total : 0:0:1
Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1