mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
22 lines
389 B
PHP
22 lines
389 B
PHP
<?php namespace App\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Company extends Eloquent
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public function accounts()
|
|
{
|
|
return $this->hasMany('App\Models\Account');
|
|
}
|
|
|
|
public function payment()
|
|
{
|
|
return $this->belongsTo('App\Models\Payment');
|
|
}
|
|
}
|