public function setAccessTokenAttribute($value) { $this->attributes['access_token'] = Crypt::encrypt(json_encode($value)); }