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



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

Aucun commentaire:

Enregistrer un commentaire