app/Http/Controllers/FrontFinanceiroController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $fatura = new FinanceiroModel($request->all());
        $aluno = $fatura->id_aluno;
        $fatura->save();
        flash('Fatura inserida com sucesso');
        return redirect()->route('financeiro.show', $aluno);
    }
public function store ( Request $ request ) { $ fatura = new FinanceiroModel ( $ request -> all ( ) ) ; $ aluno = $ fatura -> id_aluno ; $ fatura -> save ( ) ; flash ( 'Fatura inserida com sucesso' ) ; return redirect ( ) -> route ( 'financeiro.show' , $ aluno ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .