TestPet.php 304 B

1234567891011121314151617
  1. <?php
  2. namespace Knuckles\Scribe\Tests\Fixtures;
  3. use Illuminate\Database\Eloquent\Model;
  4. class TestPet extends Model
  5. {
  6. protected $guarded = [];
  7. public $timestamps = false;
  8. public function owners()
  9. {
  10. return $this->belongsToMany(TestUser::class)->withPivot('duration');
  11. }
  12. }