app/Http/Controllers/FrontFinanceiroController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\RedirectResponse
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $fatura = FinanceiroModel::findOrFail($id);
        $fatura->data_pag = $request['data_pag'];
        $tm = $fatura->id_aluno;
        $fatura->save();
        flash('Pagamento confirmado com sucesso');
        return redirect()->route('financeiro.show', $tm);
    }
public function update ( Request $ request , $ id ) { $ fatura = FinanceiroModel :: findOrFail ( $ id ) ; $ fatura -> data_pag = $ request [ 'data_pag' ] ; $ tm = $ fatura -> id_aluno ; $ fatura -> save ( ) ; flash ( 'Pagamento confirmado com sucesso' ) ; return redirect ( ) -> route ( 'financeiro.show' , $ tm ) ; }
Update the specified resource in storage.
Update the specified resource in storage .