public function testSlugFromRelatedModel()
{
$author = Author::create(['name' => 'Arthur Conan Doyle']);
$post = new PostWithRelation(['title' => 'First']);
$post->author()->associate($author);
$post->save();
$this->assertEquals('arthur-conan-doyle-first', $post->slug);
}