Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TemplateNotice.php 624B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Model\Module;
  3. use Illuminate\Notifications\Notifiable;
  4. use Jenssegers\Mongodb\Auth\User as Authenticatable;
  5. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  6. class TemplateNotice extends Authenticatable
  7. {
  8. //
  9. use Notifiable;
  10. use SoftDeletes;
  11. protected $connection = 'mongodb';
  12. protected $collection = 'template_notice';
  13. protected $guarded = ['_id'];
  14. public function staff() {
  15. return $this->belongsTo('App\Model\Staff');
  16. }
  17. public function attachment()
  18. {
  19. return $this->hasOne('App\Model\Module\Attachment');
  20. }
  21. }