Laravel version update
Laravel version update
This commit is contained in:
46
vendor/tymon/jwt-auth/src/Http/Parser/KeyTrait.php
vendored
Normal file
46
vendor/tymon/jwt-auth/src/Http/Parser/KeyTrait.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of jwt-auth.
|
||||
*
|
||||
* (c) Sean Tymon <tymon148@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Tymon\JWTAuth\Http\Parser;
|
||||
|
||||
trait KeyTrait
|
||||
{
|
||||
/**
|
||||
* The key.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $key = 'token';
|
||||
|
||||
/**
|
||||
* Set the key.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the key.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user