Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.app')
- @section('content')
- <h1>Creat Post</h1>
- {!! Form::open(['action' => 'PostsController@store', 'method' => 'POST', 'enctype' => 'mutlipart/form-data']) !!}
- <div class="form-group">
- {{Form::label('title', 'Title')}}
- {{Form::text('title', '', ['class' => 'form-control', 'placeholder' => 'Title'])}}
- </div>
- <div class="form-group">
- {{Form::label('title', 'Title')}}
- {{Form::textarea('body', '', ['class' => 'form-control', 'placeholder' => 'Body', 'rows' => '5'])}}
- </div>
- <div class="form-group">
- {{Form::file('post_image')}}
- </div>
- {{Form::submit('Submit', ['class' => 'btn btn-primary'])}}
- {!! Form::close() !!}
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement