Created
March 21, 2019 11:55
-
-
Save sehmbimanvir/ed9b42fe8877d9e69816b287bc58d18b to your computer and use it in GitHub Desktop.
This file contains 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
@extends('layouts.app') | |
@section('content') | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-8"> | |
<div class="card"> | |
<div class="card-header">Upload New File</div> | |
<div class="card-body"> | |
<form action="{{ route('uploadfile') }}" enctype="multipart/form-data" method="post"> | |
@csrf | |
<div class="form-group"> | |
<input type="file" name="file" id=""> | |
<span class="help-block text-danger">{{$errors->first('file')}}</span> | |
</div> | |
<div class="form-group"> | |
<label for="title">Title</label> | |
<textarea name="title" id="caption" class="form-control"></textarea> | |
<span class="help-block text-danger">{{$errors->first('title')}}</span> | |
</div> | |
<button class="btn btn-primary">Upload</button> | |
</form> | |
</div> | |
</div> | |
@if (session('success')) | |
<div class="alert alert-success alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
{{session('success')}} | |
</div> | |
@endif | |
</div> | |
</div> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment