Suwandiaminsangaji

model/customer.php

Jul 14th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6. use Illuminate\Notifications\Notifiable;
  7. use Illuminate\Foundation\Auth\User as Authenticatable;
  8.  
  9. class Customer extends Authenticatable
  10. {
  11. use Notifiable;
  12.  
  13. protected $guarded = [];
  14.  
  15. protected $hidden = [
  16. 'password',
  17. ];
  18.  
  19. public function invoice()
  20. {
  21. return $this->hasMany(Invoice::class);
  22. }
  23.  
  24. public function PaymentConfirmation()
  25. {
  26. return $this->hasMany(PaymentConfirmation::class);
  27. }
  28.  
  29. }
Add Comment
Please, Sign In to add comment