mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-09-29 21:11:12 -04:00
* Default database connection - set defaults for engine and strict * Working on tests for refactored model * Fixes for tests, use polymorphic relationships for Invitations * skin the password reset pages
23 lines
331 B
PHP
23 lines
331 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Invitation extends Model
|
|
{
|
|
|
|
|
|
public function invoices()
|
|
{
|
|
return $this->morphedByMany(Invoice::class, 'inviteable');
|
|
}
|
|
|
|
|
|
public function proposals()
|
|
{
|
|
return $this->morphedByMany(Proposal::class, 'taggable');
|
|
}
|
|
|
|
}
|