public function registerToken(\Globalis\PuppetSkilled\Database\Magic\Model $user)
    {
        $this->queryBuilder->from($this->getTokenTable())
            ->insert([
                'user_id' => $user->getKey(),
                'token' => ($token = $this->generateResetToken()),
                'created_at' => new Carbon(),
            ]);
        return $token;
    }
public function registerToken(\Globalis\PuppetSkilled\Database\Magic\Model $user)
    {
        $this->queryBuilder->from($this->getTokenTable())
            ->insert([
                'user_id' => $user->getKey(),
                'token' => ($token = $this->generateResetToken()),
                'created_at' => new Carbon(),
            ]);
        return $token;
    }
public function registerToken ( \ Globalis \ PuppetSkilled \ Database \ Magic \ Model $ user ) { $ this -> queryBuilder -> from ( $ this -> getTokenTable ( ) ) -> insert ( [ 'user_id' => $ user -> getKey ( ) , 'token' => ( $ token = $ this -> generateResetToken ( ) ) , 'created_at' => new Carbon ( ) , ] ) ; return $ token ; }
Create a reset token

@param  \App\Model\User $user
@return string
Create a reset token