priti's avatar
Level 1

405 Method Not Allowed for get route

Hi,

I have a controller (UserController) with two method index() and store()

In my web.php

{
    $app->get('user','UserController@index');
    $app->post('user','UserController@store');
});


Post url is working as expected but for get I am getting 405 ...(Lumen 5.4)

II . I defined a new controller TestController with index() function and added new route

$app->get('test', 'TestController@index');

Calling this url from REST client or browser throws  404..

Today I have updated my composer,json and it looks like something got broke...except post route nothing is working..

Any help would be highly appreciated
0 likes
0 replies

Please or to participate in this conversation.