vendredi 27 juillet 2018

laravel get result for database and in same query count the result

I'am looking for get result of a query and return data and count of result:

$res = $this->model
                ->with('', '', '', '', '')
                ->join('')
                ->join('')->get();

for exemple I want the result and count of result in this $res.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire