Skip to main content

ERROR Error 405 (METHOD NOT ALLOWED) FULLCALENDAR LARAVELen FullCalendar Laravel

se añadieron 16 caracteres en el cuerpo
Origen Enlace
Matias Muñoz
  • 367
  • 2
  • 5
  • 18

tengo un error que me lanza la consola de chrome, y no me deja enviar el formulario a la base de datos, el error es este, gracias:

$.ajax({
  type: 'POST',
  url: "{{route('todo-eve''calendario')}}",
  data: formData,
  contentType: false,
  processData: false,
  async: false,
  success: function(feedback) {

    var jd = $.parseJSON(feedback);

    if (jd.type == 'alert-success') {
      $("#create_event_frm")[0].reset();
      $('#create_event_modal').modal('hide');
      $('#create_event_alert').show().html('');


      $('#alert_tmeassage_area').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + jd.message + '</div>');
      reloadCalender();
    } else {


      var msg = '';

      $.each(jd.error, function(key, value) {
        msg += value + '</br>';
      });

      $('#create_event_alert').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + msg + '</div>');


    }

  }


});

tengo un error que me lanza la consola de chrome, y no me deja enviar el formulario a la base de datos, el error es:

$.ajax({
  type: 'POST',
  url: "{{route('todo-eve')}}",
  data: formData,
  contentType: false,
  processData: false,
  async: false,
  success: function(feedback) {

    var jd = $.parseJSON(feedback);

    if (jd.type == 'alert-success') {
      $("#create_event_frm")[0].reset();
      $('#create_event_modal').modal('hide');
      $('#create_event_alert').show().html('');


      $('#alert_tmeassage_area').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + jd.message + '</div>');
      reloadCalender();
    } else {


      var msg = '';

      $.each(jd.error, function(key, value) {
        msg += value + '</br>';
      });

      $('#create_event_alert').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + msg + '</div>');


    }

  }


});

tengo un error que me lanza la consola de chrome, y no me deja enviar el formulario a la base de datos, el error es este, gracias:

$.ajax({
  type: 'POST',
  url: "{{route('calendario')}}",
  data: formData,
  contentType: false,
  processData: false,
  async: false,
  success: function(feedback) {

    var jd = $.parseJSON(feedback);

    if (jd.type == 'alert-success') {
      $("#create_event_frm")[0].reset();
      $('#create_event_modal').modal('hide');
      $('#create_event_alert').show().html('');


      $('#alert_tmeassage_area').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + jd.message + '</div>');
      reloadCalender();
    } else {


      var msg = '';

      $.each(jd.error, function(key, value) {
        msg += value + '</br>';
      });

      $('#create_event_alert').show().html('<div class="alert ' + jd.type + '"><a href="" class="close" data-dismiss="alert" aria-label="close">&times;</a>' + msg + '</div>');


    }

  }


});

Routes:

Route::get('calendario','calendarController@viewCalendar')->name('calendario');
    Route::get('listCalendario', 'calendarController@viewListc');
    Route::post('calendario','calendarController@guardar_evento');
    Route::get('todo-eve','calendarController@todo_evento')->name('todo-eve');
    Route::get('simple-eve/{id}','calendarController@simple_evento');
    Route::post('actualizar-eve','calendarController@actualizar_evento');
    Route::delete('borrar-eve/{id}','calendarController@borrar_evento');

Routes:

Route::get('calendario','calendarController@viewCalendar')->name('calendario');
    Route::get('listCalendario', 'calendarController@viewListc');
    Route::post('calendario','calendarController@guardar_evento');
    Route::get('todo-eve','calendarController@todo_evento')->name('todo-eve');
    Route::get('simple-eve/{id}','calendarController@simple_evento');
    Route::post('actualizar-eve','calendarController@actualizar_evento');
    Route::delete('borrar-eve/{id}','calendarController@borrar_evento');
Origen Enlace
Matias Muñoz
  • 367
  • 2
  • 5
  • 18
Loading