Skip to content

Instantly share code, notes, and snippets.

@soarecostin
Created November 20, 2019 11:06
Show Gist options
  • Select an option

  • Save soarecostin/48e43ccbd5c3968dea76dcd0703ec7d0 to your computer and use it in GitHub Desktop.

Select an option

Save soarecostin/48e43ccbd5c3968dea76dcd0703ec7d0 to your computer and use it in GitHub Desktop.
Upload form
<form action="{{ route('uploadFile') }}" method="post" enctype="multipart/form-data" class="my-4">
@csrf
<div class="form-group">
<div class="custom-file">
<input type="file" class="custom-file-input" id="userFile" name="userFile">
<label class="custom-file-label" for="userFile">Choose a file</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Upload</button>
@if (session()->has('message'))
<div class="alert alert-success mt-3">
{{ session('message') }}
</div>
@endif
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment