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;

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

        DB::table('roles')->delete();

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

        DB::table('roles')->insert([
            'id'              => 1,
            'name'            => trans('installer::app.seeders.user.roles.name', [], $defaultLocale),
            'description'     => trans('installer::app.seeders.user.roles.description', [], $defaultLocale),
            'permission_type' => 'all',
        ]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Webkul\Installer\Database\Seeders\User;

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

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

        DB::table('roles')->delete();

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

        DB::table('roles')->insert([
            'id'              => 1,
            'name'            => trans('installer::app.seeders.user.roles.name', [], $defaultLocale),
            'description'     => trans('installer::app.seeders.user.roles.description', [], $defaultLocale),
            'permission_type' => 'all',
        ]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 dd5bb11b1ce284b2e81c4bac55799570
Eval Count 0
Decode Time 95 ms