I want to put the id of authenticated user in the associative array.
Code
const USER_RULES = [
'email' => "required|unique:users,email," . Auth::user()->id . "|email",
];
Above code generates the following error:
Constant expression contains invalid operations
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire