-3

Anybody can help me please. My site pages are working in chrome console with status 200 ok. But when I go to chrome Network area and record my site activity it gives status 200 ok suppose when I try to click on my site online user page which is showing in the screenshot I get the Bug on this page which is also showing in the screenshot. My user online routes are I also tried to post method in the route command but error is the same. I'm getting this error on all my pages but my routes are all correct.

// Set Online Status

Route::put('online', 'ProfileController@setOnline')->name('setOnline');
borchvm
  • 3,533
  • 16
  • 44
  • 45

3 Answers3

0

You have to change request method of your route from put to get and do change the corresponding functionalities.

OMR
  • 11,736
  • 5
  • 20
  • 35
carte
  • 77
  • 1
  • 11
0

as you can see from error it says method not allowed

Route::get('online', 'ProfileController@setOnline')->name('setOnline');
Akash Kumar Verma
  • 3,185
  • 2
  • 16
  • 32
-1

after change the put method to get method

Route::get('online', 'ProfileController@setOnline')->name('setOnline');

I get the error in the console and console network error 422 .check screenshots please error code is 422 after get method after click on online link in the console network i get this error access denied 403

What i should do now dear boss?????

Community
  • 1
  • 1