diff --git a/.gitignore b/.gitignore index 62c8935..1d4eb2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea/ \ No newline at end of file +.idea/ +/vendor \ No newline at end of file diff --git a/src/Console/Commands/stubs/crudcontroller.stub b/src/Console/Commands/stubs/crudcontroller.stub index a5b6441..5323de4 100644 --- a/src/Console/Commands/stubs/crudcontroller.stub +++ b/src/Console/Commands/stubs/crudcontroller.stub @@ -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) { @@ -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) {