コード例 #1
0
 public function destroy($id)
 {
     $erro = ErroReportado::find($id);
     if (!empty($erro)) {
         $erro->delete();
         Session::flash('flash_message', 'Erro removido com sucesso!');
         return redirect()->back();
     }
     return 'O erro não foi encontrado';
 }
コード例 #2
0
 public function show($id)
 {
     $erros = ErroReportado::find($id)->load('Usuario');
     return view('Erros.Detail')->with('erros', $erros);
 }