$songs */ class ChangeSongsVisibilityRequest extends Request { /** @return array */ public function rules(): array { return [ 'songs' => 'required|exists:songs,id', ]; } public function authorize(): bool { return License::isPlus(); } }