PHP code example of leruge / tp6-auth

1. Go to this page and download the library: Download leruge/tp6-auth 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/ */

    

leruge / tp6-auth example snippets


return [
    'auth_on'           =>  true,               // 认证开关
    'super_id_array'         => [],             // 拥有所有权限的用户,如[1, 2, 3],那么这三个用户则拥有所有权限
];

php think auth:publish

php think migrate:run