# User Levels, Enums and Policies, oh My!

**URL:** <https://forum.devtalk.com/t/user-levels-enums-and-policies-oh-my/92467>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** laravel, php, blog-post\
**Created:** [19 January 2023 16:19 UTC](https://forum.devtalk.com/t/user-levels-enums-and-policies-oh-my/92467 "2023-01-19T16:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes-Werbrouck](https://forum.devtalk.com/user_avatar/forum.devtalk.com/johannes-werbrouck/32/4743_2.png) [@Johannes-Werbrouck](https://forum.devtalk.com/u/Johannes-Werbrouck)\
**Post date:** [19 January 2023 16:19 UTC](https://forum.devtalk.com/t/user-levels-enums-and-policies-oh-my/92467/1 "2023-01-19T16:19:02Z")

</div>

In this blog post over on [Fly.io](https://Fly.io) I take a look at PHP 8.1’s new Enum class, and show you how it can be used to set up a level structure for your users. Administrators are allowed to do anything, whereas contributors or regular member are not.

Take a look at the article here:

> **[User Levels, Enums and Policies, oh my!](https://fly.io/laravel-bytes/user-levels-enums-and-policies-oh-my/)**
>
> Using Enums to add a level structure to users, and using Policies to authorize actions based on those user levels.

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [21 January 2023 03:13 UTC](https://forum.devtalk.com/t/user-levels-enums-and-policies-oh-my/92467/3 "2023-01-21T03:13:09Z")

</div>

Nice post @Johannes-Werbrouck 😃

Don’t forget to paste the URL in the title field when you start creating the thread as that is what’ll add your URL to the homepage (and remove the rel-nofollow attribute). See this thread for details: [Info For Bloggers!](https://forum.devtalk.com/t/info-for-bloggers/80457) :023:
