コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * 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'));
 }