mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
20 lines
375 B
PHP
20 lines
375 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Concerns\Models;
|
|
|
|
use App\Models\User\Submission;
|
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|
|
|
trait Submitable
|
|
{
|
|
/**
|
|
* @return MorphMany<Submission, $this>
|
|
*/
|
|
public function submissions(): MorphMany
|
|
{
|
|
return $this->morphMany(Submission::class, Submission::RELATION_ACTIONABLE);
|
|
}
|
|
}
|