12345678910111213141516171819202122 |
- <?php
-
- namespace App\Model\Module;
-
- use Illuminate\Notifications\Notifiable;
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
-
- class Notification extends Eloquent
- {
- //
- use Notifiable;
-
- protected $connection = 'mongodb';
- protected $collection = 'notifasi';
-
- protected $guarded = ['_id'];
-
- public function staff()
- {
- return $this->belongsToMany('App\Model\Staff');
- }
- }
|