GithubHelp home page GithubHelp logo

Comments (5)

buglinjo avatar buglinjo commented on July 28, 2024 1

@ebottis If you look into source code of the package, there is called $this->roleProfile but in your model is decleared and set statically so the value will be null and you will have that error.

To fix this please remove static from protected static $roleProfile = 'profile-name';.

from ntrust.

xitude avatar xitude commented on July 28, 2024

I have the same issue when using it in views like I used to use Entrust

@if(Ntrust::can(['can-access-admin']))

from ntrust.

xitude avatar xitude commented on July 28, 2024

This is actually an issue in Entrust.
http://stackoverflow.com/questions/35785441/laravel-5-2-with-entrust-class-name-must-be-a-valid-object-or-a-string

When trying to use the EntrustUserTrait methods, you encounter the error which looks like

Class name must be a valid object or a string

then probably you don't have published Entrust assets or something went wrong when you did it. First of all check that you have the entrust.php file in your config directory. If you don't, then try php artisan vendor:publish and, if it does not appear, manually copy the /vendor/zizaco/entrust/src/config/config.php file in your config directory and rename it entrust.php.

from ntrust.

klaravel avatar klaravel commented on July 28, 2024

I will review today later on and fix this one.

from ntrust.

ajmerainfo avatar ajmerainfo commented on July 28, 2024

@ebottis where do you see $this->roleProfile?

from ntrust.

Related Issues (20)

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.