Level 102
Slashes are the wrong way and there must be one before it
\Spatie\Permission\Models\Role::with('permissions')->get()
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using tinker and when I am fetching the data it gives error
Spatie/Permission/Models/Role::with('permissions')->get()
Slashes are the wrong way and there must be one before it
\Spatie\Permission\Models\Role::with('permissions')->get()
Please or to participate in this conversation.