GithubHelp home page GithubHelp logo

foronetech / foroneadministrator Goto Github PK

View Code? Open in Web Editor NEW
443.0 443.0 128.0 7.07 MB

基于Laravel5.1封装的自带多级权限管理的后台管理系统,支持手机和PC端访问

CSS 21.21% Makefile 0.01% HTML 3.79% JavaScript 71.25% CoffeeScript 0.48% Shell 0.03% PHP 3.23%
laravel

foroneadministrator's People

Contributors

mani95lisa avatar rossli avatar sinabs avatar tobyma avatar yangcuiwang 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  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

foroneadministrator's Issues

依靠配置文件?

您做的管理系统我用了一下,据我说看到的,您的很多设置,包括权限设置,url设置等都是跟配置文件有关的,这样做是不是不太灵活?如果作为使用人员就不能任意的修改。

laravel5.2

在操作这一步的时候,Html字段显红,的确是没有包含这个文件夹
'Form' => Illuminate\Html\FormFacade::class,
'Html' => Illuminate\Html\HtmlFacade::class,
'Entrust' => Zizaco\Entrust\EntrustFacade::class

登录后提示:Class admin.permission does not exist

ReflectionException in Container.php line 741:
Class admin.permission does not exist
in Container.php line 741
at ReflectionClass->__construct('admin.permission') in Container.php line 741
at Container->build('admin.permission', array()) in Container.php line 631
at Container->make('admin.permission', array()) in Application.php line 674
at Application->make('admin.permission') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 673
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))

安装时报错 zizaco/entrust

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for forone/administrator ~1.1.1 -> satisfiable by forone/administrator[1.1.1].
- forone/administrator 1.1.1 requires zizaco/entrust dev-laravel-5@dev -> no matching package found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

创建管理员时提示没有数据库

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.admins' doesn't exist (SQL: select count(*) as aggregate from admins where email = [email protected])

database\migrations文件夹下也没看到有admin数据库创建文件。

HtmlServiceProvider内的一个小bug?

<script src="https://gist.github.com/RJustice/5b8afc535e10d4fdec0a.js"></script>

这个panel_start 和 panel_end 不配套,
panel_end没有闭合panel_start开启的标签

创建管理员的BUG

创建管理员的时候会报错,因为使用了
$registrar->create($request->only(['name', 'password', 'email']));
默认为admins表,需要修改逻辑为users表

Fatal error: Class 'Route' not found

安装完,且按照说明配置了config/app.php的providers和aliases,运行php artisan vendor:publish报错如下:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'Route' not found

laravel 5.2 安装出现问题

直接使用命令:composer require yangcuiwnag/administrator:5.2.x-dev
出现以下问题
Problem 1
- The requested package yangcuiwnag/administrator could not be found in any version, there may be a typo in the package name.

安装失败

./composer.json has been updated
Loading composer repositories with package information

Installation failed, reverting ./composer.json to its original content.

[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://git.nxdai.com/mani/ForoneAdmin
istrator.git. See https://getcomposer.org/doc/06-config.md#secure-http for details.

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-upda
te] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-package
s] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] []...

D:\phpStudy\WWW\blog>composer require forone/administrator:5.1.x
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package forone/administrator 5.1.x is satisfiable by forone/administrat
or[5.1.x-dev] but those are rejected by your minimum-stability.
Problem 2
- The requested package minimum-stability could not be found in any version, there may
be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

如果我不希望包内的route生效, 怎么做?

除了注释掉 foroneserviceprovider 内的route注册之外, 还有其他方法吗?
因为其中有一处就是adminsController的处理, 使用的验证都是验证admins表重复, 但是使用auth来说是使用的users表, 因为我前后台都有登陆. 本来想要区分使用admins 和 users表, 但是需要更改的好多. 不适合以后更新.

_<

感谢

下拉列表怎么用blade中的foreach呢

{!! Form::form_select('type_id', '标的类型', [ @foreach($results as $result) ['label'=>'名称', 'value'=>''], @endforeach ],0.5,false) !!}
这个代码会报错,不知道怎么处理

Edit user info error

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mobile' in 'where clause' (SQL: select count(*) as aggregate from admins where mobile = and id != 7)

无法登陆

一登陆就显示
ErrorException in Gate.php line 221: Illegal offset type in isset or empty
laravel 版本5.1.1

发现按钮点击修改字段值的小问题

第三项的“点击按钮后需要修改某个字段为某个值”,点击更改后报错,并没有更新该值,主要是formButton()函数uri没有写对,把 if (!array_key_exists('uri', $config)) {
// // $config['uri'] = 'update';
// //修改为
$config['uri']=$config['id'];
},就可以修改字段值了

安装失败

Problem 1
- The requested package forone/administrator 5.1.x is satisfiable by forone/
administrator[5.1.x-dev] but these conflict with your requirements or minimum-st
ability.

Installation failed, reverting ./composer.json to its original content.

新手请教一下安装流程

请教一下以下的安装步骤,是否正确?

1.git clone https://github.com/ForoneTech/ForoneAdministrator.git

2.修改ForoneAdministrator目录下的composer.json,添加以下代码
"repositories": [
{"type": "git", "url": "https://github.com/ForoneTech/ForoneAdmin.git"},
{"type": "composer", "url": "http://packagist.phpcomposer.com"},
{"packagist": false}
],

  1. 在ForoneAdministrator目录下输命令 sudo composer require forone/administrator:~1.0.0

最后提示以下信息:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package forone/administrator 1.1.1.0 could not be found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

git clone composer install 然后 require报错

求一个可用的安装方法

1,git clone
2,composer install
3,按照read me 添加
"repositories": [
{"type": "git", "url": "http://git.nxdai.com/mani/ForoneAdministrator.git"},
{"type": "composer", "url": "http://packagist.phpcomposer.com"},
{"packagist": false}
],
"minimum-stability" : "dev"
由于启用了 "minimum-stability" : "dev",Laravel的dev版本会导致paginate出错,请在composer.json里将laravel版本设置为确定的版本号,例如5.1.4 这里也改为指定的5.2.1了

报错信息
Problem 1
- Can only install one of: zizaco/entrust[5.2.x-dev, dev-laravel-5].
- Can only install one of: zizaco/entrust[dev-laravel-5, 5.2.x-dev].
- Can only install one of: zizaco/entrust[5.2.x-dev, dev-laravel-5].
- Installation request for zizaco/entrust 5.2.x-dev -> satisfiable by zizaco/entrust[5.2.x-dev].
- Installation request for zizaco/entrust (locked at dev-laravel-5, required as 5.2.x-dev) -> satisfiable by zizaco/entrust[dev-laravel-5].

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.