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.

Dealer.php 742B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App;
  3. use Illuminate\Notifications\Notifiable;
  4. use Jenssegers\Mongodb\Auth\User as Authenticatable;
  5. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  6. class DealerLaravel extends Authenticatable
  7. {
  8. //
  9. use Notifiable;
  10. use SoftDeletes;
  11. protected $connection = 'mongodb';
  12. protected $collection = 'dealer';
  13. protected $guard = 'ds';
  14. protected $guarded = ['_id'];
  15. protected $hidden = [
  16. 'password', 'remember_token',
  17. ];
  18. public function dealerdetaillaravel() {
  19. return $this->hasOne('App\Model\DealerDetailLaravel','_id','company_id');
  20. }
  21. public function companylaravel() {
  22. return $this->belongsTo('App\Model\CompanyLaravel','company_id','_id');
  23. }
  24. }