feat: add sub category
This commit is contained in:
@@ -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$/',
|
||||
|
||||
Reference in New Issue
Block a user