samedi 25 août 2018

Laravel: disallow direct access to Post method by users

I have a website which developed by laravel.

Problem:

I have a route method (POST)

Route::post('/profile/save', 'ProfileController@save');

if i enter this url "mywebsite.com/profile/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 just in my server,in Localhost i get no errors

i have clear the cache but not working

How can i solve this Problem?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BHNsJC
via IFTTT

Aucun commentaire:

Enregistrer un commentaire