InvoiceItems.php 378 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class InvoiceItems extends Model
  5. {
  6. protected $table = "invoice_items";
  7. protected $guarded=['id'];
  8. function invoice()
  9. {
  10. return $this->belongsTo('App\Models\Invoice','invoice_id','id');
  11. }
  12. function service()
  13. {
  14. return $this->belongsTo('App\Models\ServiceList','service_id','id');
  15. }
  16. }