use Illuminate\Database\Eloquent\Concerns\HasUuids;
use HasUuids;
I can get the list of all users
User::all();
But I can't get one user
User::findOrFail($id);
I have the following error:
"message": "SQLSTATE[22P02]: Invalid text representation: 7 ERREUR: syntaxe en entr\u00e9e invalide pour le type uuid : \u00ab 9aaea01a-ad56-401a-929a-479e01cffba \u00bb\nCONTEXT: param\u00e8tre de portail non nomm\u00e9 $1 = '...' (SQL: select * from "users" where "users"."id" = 9aaea01a-ad56-401a-929a-479e01cffba limit 1)",