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\Controllers\Install; use App\Utilities\Installer; use File; use..

Decoded Output download

<?php

namespace App\Http\Controllers\Install;

use App\Utilities\Installer;
use File;
use Illuminate\Routing\Controller;

class Requirements extends Controller
{
    /**
     * Show the form for creating a new resource.
     *
     * @return Response
     */
    public function show()
    {
        // Check requirements
        $requirements = Installer::checkServerRequirements();

        if (empty($requirements)) {
            // Create the .env file
            if (!File::exists(base_path('.env'))) {
                Installer::createDefaultEnvFile();
            }

            redirect('install/language')->send();
        } else {
            foreach ($requirements as $requirement) {
                flash($requirement)->error()->important();
            }

            return view('install.requirements.show', compact('requirements'));
        }
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Controllers\Install;

use App\Utilities\Installer;
use File;
use Illuminate\Routing\Controller;

class Requirements extends Controller
{
    /**
     * Show the form for creating a new resource.
     *
     * @return Response
     */
    public function show()
    {
        // Check requirements
        $requirements = Installer::checkServerRequirements();

        if (empty($requirements)) {
            // Create the .env file
            if (!File::exists(base_path('.env'))) {
                Installer::createDefaultEnvFile();
            }

            redirect('install/language')->send();
        } else {
            foreach ($requirements as $requirement) {
                flash($requirement)->error()->important();
            }

            return view('install.requirements.show', compact('requirements'));
        }
    }
}

Function Calls

None

Variables

None

Stats

MD5 efa3bfd417e320235d914bd1e85b0cb4
Eval Count 0
Decode Time 107 ms