app/Http/Controllers/FrontTurmaController.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)
    {
        $turma = new TurmaModel($request->all());
        $turma->save();
        flash('Turma Cadastrada');
        return redirect()->route('turma.index');
    }
public function store ( Request $ request ) { $ turma = new TurmaModel ( $ request -> all ( ) ) ; $ turma -> save ( ) ; flash ( 'Turma Cadastrada' ) ; return redirect ( ) -> route ( 'turma.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .