Skip to content

Commit

Permalink
Merge pull request #8 from SoapBox/performance/eager-load-definitions
Browse files Browse the repository at this point in the history
[Performance] Add definition eager load to values
  • Loading branch information
Justin Hayes authored Oct 19, 2017
2 parents b117f9d + eff9d19 commit a1707fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/SettingValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SettingValue extends Model implements Validatable
use Validates;

protected $guarded = [];
protected $with = ['definition'];

public function __construct(array $attributes = [])
{
Expand Down

0 comments on commit a1707fc

Please sign in to comment.