Group.php 405 B

123456789101112131415161718192021
  1. <?php
  2. namespace Maatwebsite\Excel\Tests\Data\Stubs\Database;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\Relations\BelongsToMany;
  5. class Group extends Model
  6. {
  7. public $timestamps = false;
  8. protected $guarded = [];
  9. /**
  10. * @return BelongsToMany
  11. */
  12. public function users(): BelongsToMany
  13. {
  14. return $this->belongsToMany(User::class);
  15. }
  16. }