Answer the question
In order to leave comments, you need to log in
Laravel route method post trailing slash gives error why?
Example:
/** Роутер */
Route::post('/news/life', '[email protected]');
/**
* Throw a method not allowed HTTP exception.
*
* @param array $others
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
protected function methodNotAllowed(array $others)
{
throw new MethodNotAllowedHttpException($others);
}
/**
* Get routes from the collection by method.
*
* @param string|null $method
* @return array
*/
public function get($method = null)
{
return is_null($method) ? $this->getRoutes() : Arr::get($this->routes, $method, []);
}
/**
* Determine if the route collection contains a given named route.
Arguments ""
Answer the question
In order to leave comments, you need to log in
You need to configure the server, it is he who redirects, and not Lara
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question