/** * Get the full invitation instance. * * @return \Laravel\Spark\Invitation */ public function invitation() { if ($this->invitation) { return Invitation::where('token', $this->invitation)->first(); } }