1 | <?php |
||
17 | class RouteParams implements ParserContract |
||
18 | { |
||
19 | /** |
||
20 | * The route param key |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $key = 'token'; |
||
25 | |||
26 | /** |
||
27 | * Try to get the token from the route parameters |
||
28 | * |
||
29 | * @param \Illuminate\Http\Request |
||
30 | * |
||
31 | * @return null|string |
||
32 | */ |
||
33 | 8 | public function parse(Request $request) |
|
44 | |||
45 | /** |
||
46 | * Set the query string key |
||
47 | * |
||
48 | * @param string $key |
||
49 | * |
||
50 | * @return RouteParams |
||
51 | */ |
||
52 | public function setKey($key) |
||
58 | } |
||
59 |