Created
November 20, 2019 11:06
-
-
Save soarecostin/48e43ccbd5c3968dea76dcd0703ec7d0 to your computer and use it in GitHub Desktop.
Upload form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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