public function checkToken($token)
    {
        return (bool) $this->token()->where('token', $token)->where('expiration_date', '>', Carbon::now())->count();
    }
public function checkToken($token)
    {
        return (bool) $this->token()->where('token', $token)->where('expiration_date', '>', Carbon::now())->count();
    }
public function checkToken ( $ token ) { return ( bool ) $ this -> token ( ) -> where ( 'token' , $ token ) -> where ( 'expiration_date' , '>' , Carbon :: now ( ) ) -> count ( ) ; }
Check the token.
@param   string  $token
@return  boolean
Check the token .