Skip to content

Commit 6a7c9b2

Browse files
committed
accepts json
1 parent 31f4d1e commit 6a7c9b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Facade/Request.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ trait Request
1717
*/
1818
use Facade;
1919

20+
/**
21+
* @return bool
22+
*/
23+
static function acceptsJson() : bool
24+
{
25+
return static::request()->acceptsJson();
26+
}
27+
2028
/**
2129
* @param array|string $name
2230
* @param mixed $default

0 commit comments

Comments
 (0)