Creating a table condition matching function

Job ID: 33549877

Budget: $10 – $30 USD

I am creating a site with laravel.
Create a condition to display or True if the user_id of table A and the user_id of table B match.
It's a simple thing, but I'm in trouble because I can't do it.
Please work on the remote desktop.
Related categories: PHP Website Design MySQL HTML Laravel