PHP code example of stru / stru-hyperf-ui

1. Go to this page and download the library: Download stru/stru-hyperf-ui 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/ */

    

stru / stru-hyperf-ui example snippets


php bin/hyperf.php vendor:publish hyperf/view
php bin/hyperf.php vendor:publish stru/stru-hyperf-ui

public function showLogin()
{
    return view('auth.login');
}
public function showRegister()
{
    return view('auth.register');
}

// 为了使模板内的路由更加灵活,可以配置 config/autolaod/blade.php 文件,自己定义路由