public function refresh()
    {
        $this->expires_at = Carbon::now()->addMonth();
        $this->token = str_random(60);
        $this->save();
    }
public function refresh()
    {
        $this->expires_at = Carbon::now()->addMonth();
        $this->token = str_random(60);
        $this->save();
    }
public function refresh ( ) { $ this -> expires_at = Carbon :: now ( ) -> addMonth ( ) ; $ this -> token = str_random ( 60 ) ; $ this -> save ( ) ; }
Refresh a given petition.

@return void
Refresh a given petition .