Laravel 5: METHOD-NOT-ALLOWED error

I have routes setup as

// ----------------------- USER ROUTES -----------------------
Route::group(['prefix' => 'v1/user', 'middleware' => 'throttle:5'], function(){    
    Route::post('login', 'UserController@login');

Route::group(['prefix' => 'v1/user', 'middleware' => 'throttle'], function(){  
    Route::post('checkuser', 'UserController@checkuser');
    Route::post('checkmail', 'UserController@checkmail');


<form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
    {!! csrf_field() !!}

And I am getting Method not found error

I know somewhere route is not correct, but how to correct it?


In your case it should be {{ url('v1/user/login') }}.

To avoid using url() you can leverage named routes.

Need Your Help

Brute force Card shake method in C#

c# windows bots

I’m making a bot that can test some card tactics on a game, the bot works but I have one problem. My card shake method is not very good.

GeoFire update in same call

ios objective-c firebase geofire

I'm creating a Firebase update dictionary like so