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 Webkul\Installer\Database\Seeders\User; use Illuminate\Database\Seeder; ..

Decoded Output download

<?php

namespace Webkul\Installer\Database\Seeders\User;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;

class AdminsTableSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @param  array  $parameters
     * @return void
     */
    public function run($parameters = [])
    {
        DB::table('admins')->delete();

        $defaultLocale = $parameters['default_locale'] ?? config('app.locale');

        DB::table('admins')->insert([
            'id'         => 1,
            'name'       => trans('installer::app.seeders.user.users.name', [], $defaultLocale),
            'email'      => '[email protected]',
            'password'   => bcrypt('admin123'),
            'api_token'  => Str::random(80),
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
            'status'     => 1,
            'role_id'    => 1,
        ]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Webkul\Installer\Database\Seeders\User;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;

class AdminsTableSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @param  array  $parameters
     * @return void
     */
    public function run($parameters = [])
    {
        DB::table('admins')->delete();

        $defaultLocale = $parameters['default_locale'] ?? config('app.locale');

        DB::table('admins')->insert([
            'id'         => 1,
            'name'       => trans('installer::app.seeders.user.users.name', [], $defaultLocale),
            'email'      => '[email protected]',
            'password'   => bcrypt('admin123'),
            'api_token'  => Str::random(80),
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
            'status'     => 1,
            'role_id'    => 1,
        ]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 2ebcf8c48e0138b7c4bd19318be46b71
Eval Count 0
Decode Time 107 ms