feat: add insight timer

This commit is contained in:
2026-06-03 00:55:40 +03:30
parent 82164f691f
commit 6f01c783fd
13 changed files with 599 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers;
use App\Models\BackgroundSound;
class BackgroundSoundController extends CatalogController
{
protected function modelClass(): string
{
return BackgroundSound::class;
}
protected function fileFields(): array
{
return [
'sound' => ['column' => 'sound_path', 'folder' => 'background-sounds/sounds', 'rules' => 'nullable|mimes:mp3,wav,ogg,flac|max:102400'],
'image' => ['column' => 'image_path', 'folder' => 'background-sounds/images', 'rules' => 'nullable|image|max:8192'],
];
}
}