Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -23,13 +23,13 @@ class Token
/**
* Create a new JSON Web Token.
*
* @param string $value
* @param string $value
*
* @return void
*/
public function __construct($value)
{
with(new TokenValidator)->check($value);
$this->value = $value;
$this->value = (string) (new TokenValidator)->check($value);
}
/**
@@ -49,6 +49,6 @@ class Token
*/
public function __toString()
{
return (string) $this->value;
return $this->get();
}
}