How to add images in laravel?

Not strong in laravel, hence the question?)
Copied the view from another file
There is a view
the <script>
$(function () {
 $("#uploadBtn").change(function () {
$('#fn').html($('#uploadBtn').val());
});
});

 $(document).on('click', '.sub-data', function () {
 var dis = document.getElementById('upload_for');
 var uploadBtn = document.getElementById('uploadBtn');
 var msg = document.getElementById('msg');

 if (dis.value == "") {
 msg.innerHTML = "Please Select the Employee for Display.";
dis.focus();
 } else if (uploadBtn.value == "") {
 msg.innerHTML = "Please Select File for Upload.";
uploadBtn.focus();
 } else {
 msg.innerHTML = "";
document.frmAddFile.submit();

}
});
</script>

 <div class="fileUpload btn btn-success" style="width: 130px; margin-left: 1px;">
 <span>Upload File</span>
 <input id="uploadBtn" type="file" required value="true" name="custImage" class="upload">
</div>

<button type="button" class="btn btn-outline sub-data">Save changes</button>


Tell me where to look? Which models are created and the controllers? Where to change something to get everything working, the file is added and data symbols in DB
June 7th 19 at 14:52
1 answer
June 7th 19 at 14:54
Tell me where to look ?

Watch here

Find more questions by tags Web Development