samedi 19 juin 2021

error add money from all records - count()

i need to add up all the money in the column "ingresos".

Error: Property [presupuesto] does not exist on this collection instance.

used the variable :


database:

enter image description here

Controller:

public function contador(){

        if (Auth::guest()) return redirect('/login');

      

        $contador = \App\Models\Registro::All();
       
        return view('contador',compact('contador'));
   


    }

I need to add the income



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire