'encrypted', 'auth_key' => 'encrypted', ]; public function user() { return $this->belongsTo(User::class); } public function subscription() { return \Minishlink\WebPush\Subscription::create([ 'endpoint' => $this->endpoint, 'publicKey' => $this->p256dh_key, 'authToken' => $this->auth_key, ]); } }