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 Illuminate\Validation\Rules\Password; /** *..

Decoded Output download

<?php

namespace App\Http\Requests\API;

use Illuminate\Validation\Rules\Password;

/**
 * @property-read string|null $current_password
 * @property-read string|null $new_password
 */
class ProfileUpdateRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'name' => 'required',
            'email' => 'required|email|unique:users,email,' . auth()->user()->id,
            'current_password' => 'required',
            'new_password' => ['sometimes', Password::defaults()],
        ];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Requests\API;

use Illuminate\Validation\Rules\Password;

/**
 * @property-read string|null $current_password
 * @property-read string|null $new_password
 */
class ProfileUpdateRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'name' => 'required',
            'email' => 'required|email|unique:users,email,' . auth()->user()->id,
            'current_password' => 'required',
            'new_password' => ['sometimes', Password::defaults()],
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 5e668070ceebb057208b6facd9740dc3
Eval Count 0
Decode Time 119 ms