Commit 7464cb5c authored by Bruno Araujo's avatar Bruno Araujo

Atualizacao final README.md

parent 3b402fed
......@@ -21,14 +21,7 @@
<component name="ChangeListManager">
<list default="true" id="493d567d-53f3-4e20-a1ed-b21775166d2f" name="Default Changelist" comment="Atualizacao final README.md">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Console/Kernel.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Console/Kernel.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Controllers/ProdutoController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Controllers/ProdutoController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Http/Kernel.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/Http/Kernel.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/adminlte.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/adminlte.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/docker-compose.yml" beforeDir="false" afterPath="$PROJECT_DIR$/docker-compose.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resources/views/produto/edit.blade.php" beforeDir="false" afterPath="$PROJECT_DIR$/resources/views/produto/edit.blade.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/routes/web.php" beforeDir="false" afterPath="$PROJECT_DIR$/routes/web.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/uema/BaseRepository.php" beforeDir="false" afterPath="$PROJECT_DIR$/uema/BaseRepository.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -206,7 +199,7 @@
<workItem from="1601556063316" duration="6070000" />
<workItem from="1601987693392" duration="7404000" />
<workItem from="1602077915136" duration="39000" />
<workItem from="1602077975731" duration="5666000" />
<workItem from="1602077975731" duration="6077000" />
</task>
<task id="LOCAL-00001" summary="Atualizacao final README.md">
<created>1601565098636</created>
......
......@@ -50,4 +50,14 @@ class ProdutoController extends Controller
return view('produto.edit', compact('produto', 'categorias'));
}
public function getDelete($id) {
$produto = $this->produtoRepository->delete($id);
if(is_null($produto)) {
return redirect()->back();
}
return redirect()->route('produto.index');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment