| 1 | <?php |
||
| 17 | class QueryString implements ParserContract |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The query string key |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $key = 'token'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Try to parse the token from the request query string |
||
| 29 | * |
||
| 30 | * @param Illuminate\Http\Request $request |
||
| 31 | * |
||
| 32 | * @return null|string |
||
| 33 | */ |
||
| 34 | public function parse(Request $request) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set the query string key |
||
| 41 | * |
||
| 42 | * @param string $key |
||
| 43 | * |
||
| 44 | * @return QueryString |
||
| 45 | */ |
||
| 46 | public function setKey($key) |
||
| 52 | } |
||
| 53 |