/** * Update the specified resource in storage. * PUT /contracts/{id} * * @param int $id * @return Response */ public function update($id) { return $contracts = Contract::where('id', $id)->update(Input::all()); }
/** * Lists all employees in a contract. * Param: id of a contract. */ public function getEmployeesByContractId($contract_id) { return Contract::where('id', $contract_id)->with('employees'); }