public function fromSubject(JWTSubject $subject)
    {
        $payload = $this->makePayload($subject);

        return $this->manager->encode($payload)->get();
    }
public function fromSubject(JWTSubject $subject)
    {
        $payload = $this->makePayload($subject);

        return $this->manager->encode($payload)->get();
    }
public function fromSubject ( JWTSubject $ subject ) { $ payload = $ this -> makePayload ( $ subject ) ; return $ this -> manager -> encode ( $ payload ) -> get ( ) ; }
Generate a token for a given subject.

@param  \Tymon\JWTAuth\Contracts\JWTSubject  $subject

@return string
Generate a token for a given subject .