Skip to content

why not using laravel config Authentication Model name? #1

@pajooh

Description

@pajooh

in app/config/auth.php, there is a 'model' property, using this is more flexible than current hardcoded user model in Comment model:

    public function user()
    {
        return $this->belongsTo('User');
    }

also, it is assumed that the user model have to has username property, getting this property name as config option makes this package workable with custom user models like Sentry, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions