GithubHelp home page GithubHelp logo

Comments (6)

ajmerainfo avatar ajmerainfo commented on July 28, 2024

@brunocamarggo Can you please show your use model code here?

from ntrust.

brunocamarggo avatar brunocamarggo commented on July 28, 2024

`<?php

namespace estoque;

use Illuminate\Notifications\Notifiable;
use Klaravel\Ntrust\Traits\NtrustUserTrait;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable{
use Notifiable;
use NtrustUserTrait;

protected $roleProfile = 'user';

protected  $fillable = [
    'name', 'email', 'password',
];

protected  $hidden = [
    'password', 'remember_token',
];

public function role(){
    return $this->hasMany('estoque\Role');
}

}
`

from ntrust.

ajmerainfo avatar ajmerainfo commented on July 28, 2024

Can you please try with replace below code?

protected static $roleProfile = 'user';

https://github.com/klaravel/ntrust#role

from ntrust.

brunocamarggo avatar brunocamarggo commented on July 28, 2024

@ajmerainfo If I replace this code I get the error "Class name must be a valid object or a string "

from ntrust.

ajmerainfo avatar ajmerainfo commented on July 28, 2024

Can you please show full error?

from ntrust.

brunocamarggo avatar brunocamarggo commented on July 28, 2024

@ajmerainfo Thanks for the attention. I didn't find the error but I restarted all the configuration and now all works fine. Thanks a lot.

Can you close this issue, please?

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.