mardi 23 janvier 2018

Laravel 5.5 return a POST response to the user's browser

I would like to know, how can I send a response POST to a client Browser. I have this simple example in my web.php, but is in GET:

Route::get('proof', function() {
   $request =Place::all();
  return $request;
});

It works fine, but if I change the Route::get to Route::post I receive an error in my client. How can i do? thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire