Dashboard sipadu mbip
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DeedLaw.php 578B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Model\Module;
  3. use Illuminate\Notifications\Notifiable;
  4. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  5. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  6. class DeedLaw extends Eloquent
  7. {
  8. //
  9. use Notifiable;
  10. use SoftDeletes;
  11. protected $connection = 'mongodb';
  12. protected $collection = 'deedlaw';
  13. protected $guarded = ['_id'];
  14. public function faulty()
  15. {
  16. return $this->hasMany('App\Model\Module\Faulty');
  17. }
  18. public function department()
  19. {
  20. return $this->belongsToMany('App\Model\Module\Department');
  21. }
  22. }