POST 405 (Method not allowed) when trying to post AJAX request - Laravel 4

前端 未结 1 833
时光取名叫无心
时光取名叫无心 2021-01-01 22:15

I am trying to issue a simple AJAX request to populate a menu in Laravel, however, I am having a lot of trouble with getting it to work properly.

I am not sure what

相关标签:
1条回答
  • 2021-01-01 22:54

    Wouldn't this be your issue?

    Route::get('/ajax/populateApiAuth', 'ApiController@populateApiAuth');
    

    You set the route up for GET requests, but you're trying to access it via a POST request.

    0 讨论(0)
提交回复
热议问题