You need to make $data public. then you can catch it like this code below,
$personal = $this->data;
or
$personal = $this->output();
I think it's cleaner if you make a getter and setter methods.
Of course, thanks for that. I created the get and set as you said and made the public property
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community