Laravel function name must be a string [closed]

I think

$body['user_id'] = $user()->id;

should be

$body['user_id'] = $user->id; 

Leave a Comment