Skip to content

Commit

Permalink
note string usage in report function
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 12, 2021
1 parent 37303ad commit f28876d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,10 @@ The `report` function will report an exception using your [exception handler](/d

report($e);

The `report` function also accepts a string as an argument. When a string is given to the function, the function will create an exception with the given string as its message:

report('Something went wrong.');

<a name="method-request"></a>
#### `request()` {#collection-method}

Expand Down

0 comments on commit f28876d

Please sign in to comment.