/** * Mark the payout as fulfilled and record who did it. * * @param int $id * @return Response */ public function fulfill($id) { $payout = Payout::findOrFail($id); $payout->fulfilled = true; $payout->fulfiller_id = Auth::id(); if ($payout->save()) { Session::flash('success', 'Payout #' . $payout->id . ' marked as fulfilled!'); return Redirect::back(); } Session::flash('danger', 'Could not mark Payout as fulfilled.'); return Redirect::back(); }