mardi 26 février 2019

Select data and use where and where laravel 5.6

I am trying to create ( (Where and Where) OR (Where and Where) ) And after a lot of searching I found this

  $last_transations = Transcationhistorique::where('sender_id', '=', $user_id)->where('receiver_id','=', $user_id)
            ->orderBy('created_at', 'desc')->skip(3)->take(3)->get();

I get a empty result

"last 3 transactions": []



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire