I’m trying to verify if an api we use in work is working
with Href, using the route /test/intent/ it should execute the controller and check if its working or not
blade.php
@section('content')
<div class="container">
<div class="col-12 mt-5 text-center">
<a href="/test/intent" class="btn btn-lg btn-primary">Test</a>
</div>
</div>
@endsection
route:
Route::post('/test/intent', 'TestingDebitTestController@intent');
the error we are getting is
MethodNotAllowedHttpException
/**
* Throw a method not allowed HTTP exception.
*
* @param array $others
* @return void
*
* @throws SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
*/
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, []);
}
/**
enter code here