Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Http\Requests\API; use App\Models\Song; use Illuminate\Validation\Ru..

Decoded Output download

<?php

namespace App\Http\Requests\API;

use App\Models\Song;
use Illuminate\Validation\Rule;

/**
 * @property-read array<string> $songs
 */
class UpdateQueueStateRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'songs' => 'array',
            'songs.*' => [Rule::exists(Song::class, 'id')],
        ];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Requests\API;

use App\Models\Song;
use Illuminate\Validation\Rule;

/**
 * @property-read array<string> $songs
 */
class UpdateQueueStateRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'songs' => 'array',
            'songs.*' => [Rule::exists(Song::class, 'id')],
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 6d2fbba9c88a25650582aa84dc03739a
Eval Count 0
Decode Time 127 ms