Is there a way to use a object variable instantiated from a class in two functions?
I am trying to, but, it returns me null
class bookAppointmentsController extends APIController
{
private $business;
public funcition check($key)
{
$this->business = new APIClass();
$setconnection = $this->business->connectAPI($key);
public function book()
{
dd($this->business) //returns null
$this->business->book();
I am trying to use the $business object in two functions but it does not work, when I dd($business) it returns null
Any way to do this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2yVZRI5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire