1234567891011121314151617181920212223242526272829303132333435 |
- <?php
-
- namespace App\Model;
-
- use Illuminate\Notifications\Notifiable;
- use Jenssegers\Mongodb\Auth\User as Authenticatable;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class UserKelantanPay extends Authenticatable
- {
- //
- use Notifiable;
- use SoftDeletes;
-
- protected $connection = 'mongodb2';
- protected $collection = 'user';
-
- protected $guarded = ['_id'];
-
- protected $hidden = [
- 'password', 'remember_token',
- ];
-
- // public function getJWTIdentifier() {
- // return $this->getKey();
- // }
-
- // public function getJWTCustomClaims() {
- // return [];
- // }
-
- public function userdetailkelantan() {
- return $this->hasOne('App\Model\UserDetailKelantan','email','email');
- }
- }
|