PHP code example of xgenious / installer
1. Go to this page and download the library: Download xgenious/installer 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/ */
xgenious / installer example snippets
example
protected $middleware = [
/* Laravel defult middleware */
\Xgenious\Installer\Http\Middleware\InstallerMiddleware::class
];
# config/installer.php
return [
'app_name' => 'Fundorex', //app name
'super_admin_role_id' => 3, // super admin role id
'admin_model' => \App\Admin::class, //admin modal
'admin_table' => 'admins', //admin table
'multi_tenant' => false,
'author' => 'xgenious', // envato author username
'product_key' => '8de1f072836b127749b7aa2b575ffc0002ade20e', //product key from xgenious license server
'php_version' => '8.1', //minimum onfig value
'cache_driver' => 'file', // default config value
'queue_connection' => 'sync', // default config value
'mail_port' => '587', // default config value
'mail_encryption' => 'tls', // default config value
'model_has_roles' => true,
'bundle_pack' => false, //if the product has bundle pack
'bundle_pack_key' => 'dsfasd', //bundle pack product key
];
APP_NAME=Fundorex
APP_ENV=production
APP_KEY=base64:8e5wSFpua5CzuHhXJEaJHcpRFBR2nqLAV0zTURuXgLA=
APP_DEBUG=false
APP_URL=http://fundorex.test/
shell
php artisan vendor:publish --provider="Xgenious\Installer\InstallerServiceProvider" --tag="config"
app\Http\Kernel.php