/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $user = User::findWithPermission($id); $document = $this->policyRepository->getByName('member-agreement'); $htmlDocument = Markdown::defaultTransform($document); return view('account.induction.show')->with('user', $user)->with('document', $htmlDocument); }
public function viewPolicy($document) { $document = $this->policyRepository->getByName($document); $htmlDocument = Markdown::defaultTransform($document); return \View::make('resources.policy')->with('document', $htmlDocument); }