22 lines
580 B
PHP
22 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\BellSound;
|
|
|
|
class BellSoundController extends CatalogController
|
|
{
|
|
protected function modelClass(): string
|
|
{
|
|
return BellSound::class;
|
|
}
|
|
|
|
protected function fileFields(): array
|
|
{
|
|
return [
|
|
'sound' => ['column' => 'sound_path', 'folder' => 'bells/sounds', 'rules' => 'nullable|file|extensions:mp3,wav,ogg,flac,aac,m4a,opus,mpga,wma|max:51200'],
|
|
'image' => ['column' => 'image_path', 'folder' => 'bells/images', 'rules' => 'nullable|image|max:8192'],
|
|
];
|
|
}
|
|
}
|