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 string $song
 * @property-read int $position
 */
class UpdatePlaybackStatusRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'song' => [Rule::exists(Song::class, 'id')],
            'position' => 'required|integer',
        ];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Requests\API;

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

/**
 * @property-read string $song
 * @property-read int $position
 */
class UpdatePlaybackStatusRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'song' => [Rule::exists(Song::class, 'id')],
            'position' => 'required|integer',
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 77abc4bbb816e2778f11e5c5ee3b6485
Eval Count 0
Decode Time 125 ms