app/Models/Role.php
/**
     * The users that belong to the role.
     */
The users that belong to the role.
The users that belong to the role .
public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
    {
        return $this->belongsToMany(
            User::class,
            'role_users',
        )->withTimestamps();
    }
public function users ( ) : \ Illuminate \ Database \ Eloquent \ Relations \ BelongsToMany { return $ this -> belongsToMany ( User :: class , 'role_users' , ) -> withTimestamps ( ) ; }
The users that belong to the role.
The users that belong to the role .