15 lines
260 B
PHP
15 lines
260 B
PHP
<?php
|
|
|
|
namespace App\Models\Concerns;
|
|
|
|
use App\Models\Rejection;
|
|
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
|
|
|
trait HasRejection
|
|
{
|
|
public function rejection(): MorphOne
|
|
{
|
|
return $this->morphOne(Rejection::class, 'rejectable');
|
|
}
|
|
}
|