mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 03:21:08 +03:30
testing
This commit is contained in:
@@ -17,4 +17,14 @@ trait HasMediaTrait
|
||||
{
|
||||
return $this->morphMany(Media::class, 'model')->where('collection_name', 'main_images');
|
||||
}
|
||||
|
||||
public static function isValidMediaCollection(string $collectionName): bool
|
||||
{
|
||||
return in_array($collectionName, static::getValidCollections());
|
||||
}
|
||||
|
||||
protected static function getValidCollections(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user