Skip to content

Commit

Permalink
templatePrefix errado em alguns metodos
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjar committed Nov 16, 2016
1 parent 518ce98 commit 20a5d91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
.idea/
/vendor
4 changes: 2 additions & 2 deletions src/Console/Commands/stubs/crudcontroller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ abstract class CrudController extends Controller
try
{
$item = $this->getModel()->findOrFail($id);
return view($this->route_base_name . '.show', compact('item'));
return view($this->templatePrefix . '.show', compact('item'));
}
catch(ModelNotFoundException $ex)
{
Expand All @@ -147,7 +147,7 @@ abstract class CrudController extends Controller
try
{
$item = $this->getModel()->findOrFail($id);
return view($this->route_base_name . '.edit', compact('item'));
return view($this->templatePrefix . '.edit', compact('item'));
}
catch(ModelNotFoundException $ex)
{
Expand Down

0 comments on commit 20a5d91

Please sign in to comment.