2018-10-15 23:40:34 +11:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
2018-11-02 21:54:46 +11:00
|
|
|
class Invitation extends BaseModel
|
2018-10-15 23:40:34 +11:00
|
|
|
{
|
2018-10-22 23:04:37 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public function invoices()
|
|
|
|
|
{
|
|
|
|
|
return $this->morphedByMany(Invoice::class, 'inviteable');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function proposals()
|
|
|
|
|
{
|
2018-11-02 21:54:46 +11:00
|
|
|
return $this->morphedByMany(Proposal::class, 'inviteable');
|
2018-10-22 23:04:37 +11:00
|
|
|
}
|
|
|
|
|
|
2018-10-15 23:40:34 +11:00
|
|
|
}
|