contract migration stuff

This commit is contained in:
2019-04-28 03:10:16 -05:00
parent 5a88fabbbd
commit d7ab1f4d46
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class ContractAdminController extends Controller
public function storeNewContract(Request $request) {
$this->validate($request, [
'title',
'name',
'end_date',
'body',
'type',
@@ -48,7 +48,7 @@ class ContractAdminController extends Controller
//Store the contract in the database
$contract = new Contract;
$contract->title = $request->title;
$contract->title = $request->name;
$contract->end_date = $request->end_date;
$contract->body = $request->body;
$contract->type = $request->type;

View File

@@ -25,7 +25,7 @@
</div>
<div class="form-group">
{{ Form::label('date', 'End Date') }}
{{ Form::text('date', '', ['class' => 'form-control', 'placeholder' => '4/24/2019']) }}
{{ Form::date('date', \Carbon\Carbon::now()->addWeek(), ['class' => 'form-control', 'placeholder' => '4/24/2019']) }}
</div>
<div class="form-group">
{{ Form::label('type', 'Public Contract') }}