How to add extra values in every result?

Posted 1 week ago by laravel007

Hello

I have an object called user where the user object has a property called temp_code. The temp_code is fixed already. Until now it fine.

Now I want to display the temp_code with some extra value. For example-

temp_code = 6754

During display the temp_code, it will be like this-

temp_code = 6754-9878

Here the convention is -{4numbers}. This 4 number is like a temporary random number for display only.

Thanks in advance.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.