1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/app/Models/Company.php

34 lines
600 B
PHP
Raw Normal View History

2016-04-17 00:34:39 +02:00
<?php namespace App\Models;
use Eloquent;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Company
*/
2016-04-17 00:34:39 +02:00
class Company extends Eloquent
{
use SoftDeletes;
/**
* @var array
*/
2016-04-17 00:34:39 +02:00
protected $dates = ['deleted_at'];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
2016-04-17 00:34:39 +02:00
public function accounts()
{
return $this->hasMany('App\Models\Account');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2016-04-17 00:34:39 +02:00
public function payment()
{
return $this->belongsTo('App\Models\Payment');
}
}