for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace AdamWathan\Faktory\Relationship;
class BelongsTo extends Relationship
{
public function build()
return $this->factory->build($this->attributes);
}
public function create()
return $this->factory->create($this->attributes);
protected function getRelatedModel()
return $this->factory->getModel();