Answer the question
In order to leave comments, you need to log in
How to write a query to get a result from another table?
There is a task:
I'm trying to do this:
Take the user's Auth and compare its value with the Auth of another table.
If the values match, then display the amount of money for the current user.
So far the following has happened:
$auth = Auth::user()->auth;
$lk = App\Models\Lk::select('cash','auth')->where('auth',$auth)->get();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question