ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/facade/ignition/src/Http/Controllers/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/facade/ignition/src/Http/Controllers/ScriptController.php

<?php

namespace Facade\Ignition\Http\Controllers;

use Facade\Ignition\Ignition;
use Illuminate\Http\Request;

class ScriptController
{
    public function __invoke(Request $request)
    {
        if (! isset(Ignition::scripts()[$request->script])) {
            abort(404, 'Script not found');
        }

        return response(
            file_get_contents(
                Ignition::scripts()[$request->script]
            ),
            200,
            ['Content-Type' => 'application/javascript']
        );
    }
}

Zerion Mini Shell 1.0