Skip to content

Commit

Permalink
fix: LaraRequestServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
efureev committed Dec 15, 2021
1 parent 6d0b05e commit 2822deb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Helps you build your own Requests.
You need to boot `LaraRequestServiceProvider`.

Custom Request

```php
<?php

Expand All @@ -34,3 +35,11 @@ class CustomController extends Controller
}
}
```

Other services

```php
$app['request'] instanceOf CustomRequest === true
request() instanceOf CustomRequest === true
app('request') instanceOf CustomRequest === true
```

0 comments on commit 2822deb

Please sign in to comment.