app/Http/Controllers/FrontAnamneseController.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)
    {
        $anamnese = new AnamneseModel($request->all());
        $anamnese->save();
        flash('Anamnese cadastrada com sucesso!')->success();
        return redirect()->route('anamneses.index');
    }
public function store ( Request $ request ) { $ anamnese = new AnamneseModel ( $ request -> all ( ) ) ; $ anamnese -> save ( ) ; flash ( 'Anamnese cadastrada com sucesso!' ) -> success ( ) ; return redirect ( ) -> route ( 'anamneses.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .