app/Http/Controllers/FrontAulaController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\RedirectResponse
     */
Remove the specified resource from storage.
@param  int  $id
@return \Illuminate\Http\RedirectResponse
Remove the specified resource from storage . @param int $id @return \ Illuminate \ Http \ RedirectResponse
public function destroy($id)
    {
        $aula = AulaModel::findOrFail($id);
        $tm = $aula->id_turma;
        $aula->delete();
        flash('Aula Excluída')->success();
        return redirect()->route('turma.show', $tm);
    }
public function destroy ( $ id ) { $ aula = AulaModel :: findOrFail ( $ id ) ; $ tm = $ aula -> id_turma ; $ aula -> delete ( ) ; flash ( 'Aula Excluída') - >s uccess( ) ; return redirect ( ) -> route ( 'turma.show' , $ tm ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .