Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Sams707's avatar

Laravel Sanctum

I'm working on Laravel ptoject, but I've been stuck for two days already. I installed Sanctum in my project which of course uses version 10 of laravel. To put it simply. I'm facing two errors that I can't resolve in my code editor. I need help please !

0 likes
5 replies
cjke7777's avatar

You'll need to provide some level of detail - the post at the moment is extremely vague.

What errors are you getting?

1 like
Sams707's avatar

@cjke7777 Here are the errors I am facing : Undefined method 'createToken'; and Undefined method 'tokens'.

Please or to participate in this conversation.