/**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     Note::create($request->all());
     return response()->json(["mensaje" => "creado correctamente"]);
 }
Beispiel #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     Note::create($request->all());
     return response()->json(['massage' => 'Note Created Successfully']);
 }