contract system before testing

This commit is contained in:
2019-04-27 01:04:22 -05:00
parent a977f36377
commit c9bf440ed1
6 changed files with 53 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ class ContractController extends Controller
* Controller function to display the bids placed on contracts
*/
public function displayBids($contractId) {
$bids = Bids::where(['contract_id' => $contractId, 'character_name' => auth()->user()->getname()])->get();
$bids = Bids::where(['contract_id' => $contractId, 'character_name' => auth()->user()->getName()])->get();
return view('contracts.bids')->with('bids', $bids);
}