Merge pull request #480 from lypsisrudiansyah/main

Updating Generate an HTTP exception response using status code,
This commit is contained in:
Fechin authored and GitHub committed 2023-12-08 09:43:43 +08:00
commit 7851a8e3e6
1 file changed
+14 -5
+14 -5
View File
@@ -471,11 +471,20 @@ public function isValid($value)
```
Report an exception but continue handling the current request
### HTTP Exceptions
```php
// page not found
abort(404);
```
### HTTP Exceptions
```php
// page not found
abort(404);
// Unauthorized
abort(401);
// Forbidden
abort(403);
// Server Error
abort(500);
```
Generate an HTTP exception response using status code