PHP code example of hgists / lumener

1. Go to this page and download the library: Download hgists/lumener library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hgists / lumener example snippets


$app->register(\Lumener\LumenerServiceProvider::class);

Lumener\LumenerServiceProvider::class

$app->configure('lumener');

php artisan lumener:stylize [OPTIONAL --file] [OPTIONAL --url]

php artisan lumener:stylize

php artisan lumener:stylize --file=/home/Downloads/adminer.css

php artisan lumener:stylize --url=https://raw.githubusercontent.com/vrana/adminer/master/designs/lucas-sandery/adminer.css

php artisan lumener:plugin [OPTIONAL --file] [OPTIONAL --url]

php artisan lumener:plugin

php artisan lumener:plugin --file=/home/Downloads/designer.php

php artisan lumener:plugin --url=https://raw.github.com/vrana/adminer/master/plugins/database-hide.php

"adminer" => [
    ...
    "extension_file" => base_path("app/Logic/LumenerExtension.php")
    ...
]


// Lumener and $plugins are already defined before this file is  {
      // key used for permanent login
      return 'ca41d8e9879df648e9a43cefa97bc12d';
    }
}

if (empty($plugins)) {
    return new ExtendedLumener();
}
return new ExtendedLumener($plugins);

$router->addRoute(null, 'lumener', ['middleware' => ['auth'], 'as' => 'lumener']);

$router->group(
    ['middleware' => ['encrypt_cookies', 'auth', 'level:100'], 'prefix' => 'admin'],
    function () use ($router) {
        $router->addRoute(null, 'lumener', ['as' => 'lumener']);
    }
);

protected $except = [
     'lumener'
 ];
 

class AdminController{
    public function __construct(Request $request)
    {
        $this->request = $request;
    }
    public function lumener()
    {
        // If you are using a Content Seucrity Policy, define it here
        define("LUMENER_CSP", [["form-action" => "'self'"]]);
        $controller = new \Lumener\Controllers\LumenerController($this->request);
        $content = $controller->index();
        return view('admin.dashboard', ['content' => $content]);
    }
}
// Don't forget to use {!! $content !!} in blade as $content is HTML
 
bash
php artisan lumener:update [OPTIONAL --force]
js
"scripts": {
    "post-install-cmd": [
        "php artisan lumener:update"
    ],
    "post-update-cmd": [
        "php artisan lumener:update"
    ]
}