mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
20 lines
397 B
PHP
20 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API\Interaction;
|
|
|
|
use App\Http\Requests\API\Request;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
/**
|
|
* @property-read string $song The song's ID
|
|
*/
|
|
class IncreasePlayCountRequest extends Request
|
|
{
|
|
/** @return array<mixed> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'song' => ['required', Rule::exists('songs', 'id')],
|
|
];
|
|
}
|
|
}
|