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/ */
// 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);
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