X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f77236aa3832a5a0f050e097c60189b9b6a19969..refs/pull/3391/head:/app/Auth/Role.php diff --git a/app/Auth/Role.php b/app/Auth/Role.php index fc2e39aa9..51b2ce301 100644 --- a/app/Auth/Role.php +++ b/app/Auth/Role.php @@ -7,6 +7,7 @@ use BookStack\Auth\Permissions\RolePermission; use BookStack\Interfaces\Loggable; use BookStack\Model; use Illuminate\Database\Eloquent\Collection; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; @@ -23,8 +24,12 @@ use Illuminate\Database\Eloquent\Relations\HasMany; */ class Role extends Model implements Loggable { + use HasFactory; + protected $fillable = ['display_name', 'description', 'external_auth_id']; + protected $hidden = ['pivot']; + /** * The roles that belong to the role. */