PHP code example of ichynul / la-a-duo
1. Go to this page and download the library: Download ichynul/la-a-duo 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/ */
ichynul / la-a-duo example snippets
'extensions' => [
'la-a-duo' => [
// Set to `false` if you want to disable this extension
'enable' => true,
// ['admin1' ,'admin2' , ...]
'prefixes' => ['admin1'],
// Set to `false` allow login to different prefixes in same brower
'apart' => true,
// Set to `true` allow extend routes from base admin , Such as http://localhost/admin1/goods => Admin\Controllers\GoodsController@index
'extend_routes' => false,
// Base admin_tables migration file path, if new prefix use different database setting , copy this file for it
'base_migration' => database_path('migrations/2016_01_04_173148_create_admin_tables.php')
]
],