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;