*/ protected $model = AddressBookSubscription::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'account_id' => factory(Account::class)->create(), 'user_id' => function (array $attributes) { return factory(User::class)->create([ 'account_id' => $attributes['account_id'], ]); }, 'address_book_id' => function (array $attributes) { return AddressBook::factory()->create([ 'account_id' => $attributes['account_id'], 'user_id' => $attributes['user_id'], ]); }, 'name' => $this->faker->word, 'uri' => $this->faker->url, 'capabilities' => [ 'addressbookMultiget' => true, 'addressbookQuery' => true, 'syncCollection' => true, 'addressData' => [ 'content-type' => 'text/vcard', 'version' => '4.0', ], ], 'username' => $this->faker->email, 'password' => 'password', 'syncToken' => '"test"', ]; } }