feat: add sub category

This commit is contained in:
2026-05-21 15:18:11 +03:30
parent 2c40ce1e46
commit f3685d4ca9
9 changed files with 358 additions and 34 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ public function store(Request $request)
$data = $request->validate([
'title' => 'required|string|max:255',
'artist' => 'nullable|string|max:255',
'file' => 'required|mimes:mp3,wav,ogg|max:20971520',
'file' => 'required|mimes:mp3,wav,ogg,flac|max:20971520',
'type' => 'nullable|in:public,private',
'image_id' => 'nullable|exists:images,id',
'playlist_id' => 'nullable|exists:music_playlists,id',
@@ -207,7 +207,7 @@ public function update(Request $request, $id)
'title' => 'nullable|string|max:255',
'artist' => 'nullable|string|max:255',
'type' => 'nullable|in:public,private',
'file' => 'nullable|mimes:mp3,wav,ogg|max:10240',
'file' => 'nullable|mimes:mp3,wav,ogg,flac|max:20971520',
'image_id' => 'nullable|exists:images,id',
'playlist_id' => 'nullable|exists:music_playlists,id',
'duration' => 'nullable|string|regex:/^(?:\d+:)?[0-5]?\d:[0-5]\d$/',