public function setLaravel(Application $laravel = null) { if (is_null($laravel) === false) { $this->laravel = $laravel; if (method_exists($this, 'subscribe') === true) { $this->subscribe(); } } return $this; }