Below is the data I get when I do Abort(400).
HttpException {#2704 ▼
-statusCode: 400
-headers: []
#message: ""
#code: 0
#file: "C:\Users\murli\laravel\alawooz-qm\vendor\laravel\framework\src\Illuminate\Foundation\Application.php"
#line: 940
trace: {▶}
}
with different errors: 404, 401, 403, 500,... I get different properties.
I would like to check if a specific property exists.
for example: $e->getMethod() or $e->getRequestUri(),...
something like: if(isset($e->getMethod())) but it does not seem to work. I tried to use property_exists() and method_exists() as well.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire