get return value from another function laravel

Solutions on MaxInterview for get return value from another function laravel by the best coders in the world

showing results for - "get return value from another function laravel"
Martyn
13 Jun 2017
1public function Gettoken()
2{
3    ...
4
5    return $xtoken;
6}
7
8public function registerUser()
9{
10    $xtoken = $this->Gettoken();
11
12    ...
13}