I have a website which is developed in Laravel.
Problem:
I have a route method (POST)
Route::post('/profile/edit/save', 'ProfileController@save');
if I enter this url "mywebsite.com/profile/edit/save" I get an error
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
my .env file:
APP_NAME=Laravel
APP_ENV=production
APP_DEBUG=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost
I get this error while running this code on my server,in Localhost I don't get any errors.
I have cleared the cache but it's not working
How can i solve this Problem?