Dashboard sipadu mbip
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

SubHistory.php 407B

12345678910111213141516171819
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. class SubHistory extends Eloquent
  5. {
  6. //
  7. protected $connection = 'mongodb';
  8. protected $collection = 'sub_history';
  9. protected $guarded = ['_id'];
  10. public function history(){
  11. // 1: Referrer Parent, 2: Referer Current Class
  12. return $this->belongsToMany('App\Model\Module\History');
  13. }
  14. }