<commit_before><?php

namespace Yajra\CMS\Entities;

use App\User;

class Guest extends User
{
    /**
     * @var string
     */
    protected $table = 'users';

    /**
     * @var string
     */
    protected $primaryKey = 'id';
}<commit_msg>Fix roles relation.<commit_after><?php

namespace Yajra\CMS\Entities;

use App\User;

class Guest extends User
{
    /**
     * @var string
     */
    protected $table = 'users';

    /**
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * Model can have many roles.
     *
     * @return \Illuminate\Database\Eloquent\Model
     */
    public function roles()
    {
        return $this->belongsToMany(config('acl.role', Role::class), 'role_user', 'user_id', 'role_id')->withTimestamps();
    }
}
{'fraction_non_alphanumeric': 0.15364583333333334, 'fraction_numerical': 0.0, 'mean_word_length': 2.314655172413793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '884143', 'n_tokens_mistral': 257, 'n_tokens_neox': 254, 'n_words': 56}