mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-03 11:15:04 +02:00
27 lines
599 B
PHP
27 lines
599 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Models\Wiki\Studio;
|
|
|
|
use App\Models\Wiki\ExternalResource;
|
|
use App\Actions\Models\Wiki\AttachResourceAction;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
/**
|
|
* Class AttachStudioResourceAction.
|
|
*/
|
|
class AttachStudioResourceAction extends AttachResourceAction
|
|
{
|
|
/**
|
|
* Get the relation to the action models.
|
|
*
|
|
* @param ExternalResource $resource
|
|
* @return BelongsToMany
|
|
*/
|
|
protected function relation(ExternalResource $resource): BelongsToMany
|
|
{
|
|
return $resource->studios();
|
|
}
|
|
}
|