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 Database\Factories; use App\Models\Album; use App\Models\Artist; use Ill..

Decoded Output download

<?php

namespace Database\Factories;

use App\Models\Album;
use App\Models\Artist;
use Illuminate\Database\Eloquent\Factories\Factory;

class AlbumFactory extends Factory
{
    protected $model = Album::class;

    /** @return array<mixed> */
    public function definition(): array
    {
        return [
            'artist_id' => Artist::factory(),
            'name' => $this->faker->colorName,
            'cover' => md5(uniqid()) . '.jpg',
        ];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Database\Factories;

use App\Models\Album;
use App\Models\Artist;
use Illuminate\Database\Eloquent\Factories\Factory;

class AlbumFactory extends Factory
{
    protected $model = Album::class;

    /** @return array<mixed> */
    public function definition(): array
    {
        return [
            'artist_id' => Artist::factory(),
            'name' => $this->faker->colorName,
            'cover' => md5(uniqid()) . '.jpg',
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 b85f3a43163fb91251dc2b69d704d1b6
Eval Count 0
Decode Time 106 ms