Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
treinamento_laravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bruno Araujo
treinamento_laravel
Commits
7464cb5c
Commit
7464cb5c
authored
Oct 08, 2020
by
Bruno Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atualizacao final README.md
parent
3b402fed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
workspace.xml
.idea/workspace.xml
+1
-8
ProdutoController.php
app/Http/Controllers/ProdutoController.php
+10
-0
No files found.
.idea/workspace.xml
View file @
7464cb5c
...
...
@@ -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=
"
5666
000"
/>
<workItem
from=
"1602077975731"
duration=
"
6077
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"Atualizacao final README.md"
>
<created>
1601565098636
</created>
...
...
app/Http/Controllers/ProdutoController.php
View file @
7464cb5c
...
...
@@ -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'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment