GithubHelp home page GithubHelp logo

hyperf-plus / admin Goto Github PK

View Code? Open in Web Editor NEW
281.0 281.0 55.0 11.54 MB

【全新架构】使用体检和laravel-admin类似,无需写前端vue代码即可实现漂亮的ElementUI框架页面,Auth组件和 laravel的auth 类似支持多用户认证功能,hyperf-admin 插件式快速开发框架

Home Page: https://doc.hyperf.plus

PHP 100.00%
hyperf hyperf-admin hyperf-plus

admin's People

Contributors

lphkxd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admin's Issues

bug

https://github.com/lphkxd/hyperf-admin/blob/master/app/Service/UserService.php
setToken

            $jwtBuilder = new JwtBuilder();
            $jwtBuilder->setIssuer('api');
            $jwtBuilder->setAudience($id);
            //这里用简写,来减少加密后密文大小
            $jwtBuilder->setJwtData(['a' => $id, 't' => $type, 'g' => $group, 'u' => $username]);
            $tokenObj = $this->jwt->createToken($jwtBuilder);
            $refreshObj = $this->jwt->createToken($jwtBuilder, Jwt::SCOPE_REFRESH);

改成

            $jwtBuilder = new JwtBuilder();
            $jwtBuilder->setIssuer('api');
            $jwtBuilder->setAudience($id);
$jwtBuilder->setExpiration(time()+config("jwt.ttl"));
            //这里用简写,来减少加密后密文大小
            $jwtBuilder->setJwtData(['a' => $id, 't' => $type, 'g' => $group, 'u' => $username]);
            $tokenObj = $this->jwt->createToken($jwtBuilder);

$jwtBuilder2 = clone $jwtBuilder;
      $jwtBuilder2->setExpiration(time()+config("jwt.refresh_ttl"));
      $jwtBuilder2->setScope("");
            $refreshObj = $this->jwt->createToken($jwtBuilder2, Jwt::SCOPE_REFRESH);

下面的refreshUser改法一样.
用这个程序学hyperf很爽,加油~!

行操作中自定义dialog如何传入当前行的数据呢?

我需要在自定义dialog中传入当前行的数据,比如id,提交表单时候把这个id和表单数据一起提交到指定actions。请问应当调用哪个接口呢?目前我是通过item来实现的。这样会把id显示出来,不是很好。

谢谢。

麻烦问一下这个怎么用啊?

您好

我在本地部署了该项目,并不能按我想要的方式工作,readme文档中也没有明确的指示

希望得到您的回答

与最新版本不兼容了,up主用的是哪个版本的呢?报错信息如下

Problem 1
- hyperf-plus/admin[v2.0.1, ..., v2.0.3] require hyperf-plus/ui ^1.0.0 -> satisfiable by hyperf-plus/ui[v1.0.7, ..., v1.x-dev].
- hyperf-plus/admin[v2.0.4, ..., v2.1.3] require hyperf/model-cache ^2.0.0 -> satisfiable by hyperf/model-cache[v2.0.0, ..., 2.2.x-dev].
- hyperf-plus/admin dev-old requires hyperf/cache ~1.1.0 -> found hyperf/cache[v1.1.0, ..., 1.1.x-dev] but it conflicts with your root composer.json require (~3.1.0).
- hyperf-plus/admin dev-v3-develop requires hyperf-plus/ui ^3.1 -> found hyperf-plus/ui[dev-luoxin, dev-v3-develop, v1.0.7, ..., v1.x-dev] but it does not match the constraint.
- hyperf-plus/admin[v0.1.0, ..., v0.1.3] require hyperf/command ~2.0.0 -> found hyperf/command[v2.0.0, ..., 2.0.x-dev] but it conflicts with your root composer.json require (~3.1.0).
- hyperf-plus/admin[v2.2, ..., v2.x-dev] require hyperf/redis ^2.0.0 -> found hyperf/redis[v2.0.0, ..., 2.2.x-dev] but it conflicts with your root composer.json require (~3.1.0).
- hyperf-plus/ui[v1.0.7, ..., v1.0.31] require hyperf/http-message ~2.0.0 -> found hyperf/http-message[v2.0.0, ..., 2.0.x-dev] but these were not loaded, likely because it conflicts with another require.
- hyperf-plus/ui[v1.0.32, ..., v1.0.53] require hyperf/http-message ^2.0 -> found hyperf/http-message[v2.0.0, ..., 2.2.x-dev] but these were not loaded, likely because it conflicts with another require.
- hyperf/model-cache[v2.0.0, ..., 2.0.x-dev] require hyperf/contract ~2.0.0 -> found hyperf/contract[v2.0.0, ..., 2.0.x-dev] but these were not loaded, likely because it conflicts with another require.
- hyperf/model-cache[v2.1.0-beta1, ..., 2.1.x-dev] require hyperf/contract ~2.1.0 -> found hyperf/contract[v2.1.0-beta1, ..., 2.1.x-dev] but these were not loaded, likely because it conflicts with another require.
- hyperf/model-cache[v2.2.0-beta1, ..., 2.2.x-dev] require hyperf/contract ~2.2.0 -> found hyperf/contract[v2.2.0-beta1, ..., 2.2.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires hyperf-plus/admin * -> satisfiable by hyperf-plus/admin[dev-old, dev-v3-develop, v0.1.0, v0.1.1, v0.1.2, v0.1.3, v2.0.1, ..., v2.x-dev].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require hyperf-plus/admin:*" to figure out if any version is installable, or "composer require hyperf-plus/admin:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.