foronetech / foroneadministrator Goto Github PK
View Code? Open in Web Editor NEW基于Laravel5.1封装的自带多级权限管理的后台管理系统,支持手机和PC端访问
基于Laravel5.1封装的自带多级权限管理的后台管理系统,支持手机和PC端访问
正常登陆后, 做几次操作后,会被重定向到登陆界面。 暂时没有发现什么规律。请问应该如何排查这个问题呢
您做的管理系统我用了一下,据我说看到的,您的很多设置,包括权限设置,url设置等都是跟配置文件有关的,这样做是不是不太灵活?如果作为使用人员就不能任意的修改。
手机UC浏览器登入后,菜单栏无法调出。
在操作这一步的时候,Html字段显红,的确是没有包含这个文件夹
'Form' => Illuminate\Html\FormFacade::class,
'Html' => Illuminate\Html\HtmlFacade::class,
'Entrust' => Zizaco\Entrust\EntrustFacade::class
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))
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数据库创建文件。
这个panel_start 和 panel_end 不配套,
panel_end没有闭合panel_start开启的标签
创建管理员的时候会报错,因为使用了
$registrar->create($request->only(['name', 'password', 'email']));
默认为admins表,需要修改逻辑为users表
安装完,且按照说明配置了config/app.php的providers和aliases,运行php artisan vendor:publish报错如下:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'Route' not found
选择七牛华南的空间,文件上传报错:incorrect region, please use up-z2.qiniu.com
直接使用命令: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.
有没有简单点的安装方法?
按照步骤走的,为什么登录一直提示 These credentials do not match our records.
除了注释掉 foroneserviceprovider 内的route注册之外, 还有其他方法吗?
因为其中有一处就是adminsController的处理, 使用的验证都是验证admins表重复, 但是使用auth来说是使用的users表, 因为我前后台都有登陆. 本来想要区分使用admins 和 users表, 但是需要更改的好多. 不适合以后更新.
_<
感谢
{!! Form::form_select('type_id', '标的类型', [ @foreach($results as $result) ['label'=>'名称', 'value'=>''], @endforeach ],0.5,false) !!}
这个代码会报错,不知道怎么处理
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.
在SESSION_DRIVER=file时正常,很可惜session_driver只能用redis,急急急急急急急急急急!!!!!!!!!!!!
文件 src/Forone/Providers/ForoneFormServiceProvider.php
formButton 方法未使用 get参数
请教一下以下的安装步骤,是否正确?
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}
],
最后提示以下信息:
./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.
求一个可用的安装方法
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].
composer 里面固定支持5.2.*
后台界面,收起左边菜单不管用,还有后台的css,js,images加载的那么慢呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.