vendredi 2 novembre 2018

How to divide two columns in Laravel?

I am retrieving each ID's rows per page. And in that ID's page I want to divide two columns(extend / price) value. How can I add the divide "/" math into this function and also retrieve that divide result too?

public function show($id)
{
    $estates = allestates::where('id', $id)->first();

    return view('pages.show', ['estates' => $estates]);
}

Thanks for helping me out!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2CYcfbG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire