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\Seeders; use App\Models\Depreciation; use App\Models\User; use ..

Decoded Output download

<?php

namespace Database\Seeders;

use App\Models\Depreciation;
use App\Models\User;
use Illuminate\Database\Seeder;

class DepreciationSeeder extends Seeder
{
    public function run()
    {
        Depreciation::truncate();

        $admin = User::where('permissions->superuser', '1')->first() ?? User::factory()->firstAdmin()->create();

        Depreciation::factory()->count(1)->computer()->create(['user_id' => $admin->id]);
        Depreciation::factory()->count(1)->display()->create(['user_id' => $admin->id]);
        Depreciation::factory()->count(1)->mobilePhones()->create(['user_id' => $admin->id]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Database\Seeders;

use App\Models\Depreciation;
use App\Models\User;
use Illuminate\Database\Seeder;

class DepreciationSeeder extends Seeder
{
    public function run()
    {
        Depreciation::truncate();

        $admin = User::where('permissions->superuser', '1')->first() ?? User::factory()->firstAdmin()->create();

        Depreciation::factory()->count(1)->computer()->create(['user_id' => $admin->id]);
        Depreciation::factory()->count(1)->display()->create(['user_id' => $admin->id]);
        Depreciation::factory()->count(1)->mobilePhones()->create(['user_id' => $admin->id]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 8eee742fedc5d79b9a10fa1b9045b98e
Eval Count 0
Decode Time 91 ms