/** * Remove the specified resource from storage. * * @param Context $context * @return Response * @throws \Exception * @internal param int $id */ public function destroy(Context $context) { $context->delete(); return redirect(route('contexts.index')); }
/** * Show the form for creating a new resource. * * @param Statement $statement * @return Response */ public function create() { $users = User::get(); $contexts = Context::get(); return view("statements.create", compact('users', 'contexts')); }