mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 19:55:05 +02:00
23 lines
509 B
PHP
23 lines
509 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Models;
|
|
|
|
use App\Models\Wiki\ExternalResource;
|
|
use App\Pivots\Morph\Resourceable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
|
|
|
interface HasResources
|
|
{
|
|
public const RESOURCES_RELATION = 'resources';
|
|
|
|
/**
|
|
* Get the resources for the owner model.
|
|
*
|
|
* @return MorphToMany<ExternalResource, Model&HasResources, Resourceable>
|
|
*/
|
|
public function resources(): MorphToMany;
|
|
}
|