Giter Club home page Giter Club logo

laravel-admin's People

Contributors

big-pang 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

laravel-admin's Issues

安装报错

按照步骤安装之后访问页面报 500 错误,
查看php-fpm日志,以下为错误信息:

[25-Feb-2017 17:01:43 PRC] PHP Fatal error:  Trait 'Illuminate\Auth\CreatesUserProviders' not found in /data/www/com/bootstrap/cache/compiled.php on line 363
[25-Feb-2017 17:02:03 PRC] PHP Fatal error:  Trait 'Illuminate\Auth\CreatesUserProviders' not found in /data/www/com/bootstrap/cache/compiled.php on line 363
[25-Feb-2017 17:02:41 PRC] PHP Fatal error:  Trait 'Illuminate\Auth\CreatesUserProviders' not found in /data/www/com/bootstrap/cache/compiled.php on line 363
[25-Feb-2017 17:03:06 PRC] PHP Fatal error:  Trait 'Illuminate\Auth\CreatesUserProviders' not found in /data/www/com/bootstrap/cache/compiled.php on line 363
[25-Feb-2017 17:03:51 PRC] PHP Fatal error:  Trait 'Illuminate\Auth\CreatesUserProviders' not found in /data/www/com/bootstrap/cache/compiled.php on line 363

Provider错误

安装之后migrate之前由于AuthServiceProvider的boot方法读取数据库,而此时还没有migrate,所以也就不能正确运行任何artisan命令

ErrorException in userActionEvent.php line 21

报错。 后面的人注意: PHP版本必须7以上。 对版本要求目前有点高,大部分生产环境都不是7.0.

ErrorException in userActionEvent.php line 21:
Argument 1 passed to App\Events\userActionEvent::__construct() must be an instance of App\Events\string, string given, called in D:\phpStudy2\WWW\big\app\Http\Controllers\Admin\RoleController.php on line 162 and defined

添加、编辑、删除角色的时候报错

添加、编辑、删除角色的时候报错ErrorException in RoleController.php line 102:
Trying to get property of non-object
但是数据是操作成功的。
event(new \App\Events\userActionEvent('\App\Models\Admin\Role',$role->id,1,"用户".Auth::user()->username."{".Auth::user()->id."}添加角色".$role->name."{".$role->id."}"));
这是对应的抱错行

不知道是否是要这样使用的:event(new userActionEvent('\App\Models\Admin\Role',$role->id,1,"用户".Auth::guard('admin')->user()->name."{".Auth::guard('admin')->user()->id."}添加角色".$role->name."{".$role->id."}"));

添加权限的容错机制不是很好

添加权限的时候, 在规则中, 如果输入了错误的路由, 后台会全部报错, 解决方法是 删掉数据库对应的权限记录, 然后 php artisan cache:clear

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.