feat: add insight timer
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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|mimes:mp3,wav,ogg,flac|max:51200'],
|
||||
'image' => ['column' => 'image_path', 'folder' => 'bells/images', 'rules' => 'nullable|image|max:8192'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user