From b0a513cd4a8c3e14fe1ed6d830865187265743dc Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Sat, 13 Oct 2018 19:30:24 +0100 Subject: [PATCH] use the DataForm view method, rather than the View facade, as this has logic for redirection, etc. being set up by the (subclass) controller --- src/controllers/CrudController.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/controllers/CrudController.php b/src/controllers/CrudController.php index 7f213ec..d96e965 100644 --- a/src/controllers/CrudController.php +++ b/src/controllers/CrudController.php @@ -111,9 +111,14 @@ public function returnView() public function returnEditView() { $this->validateEntity($this->entity); - return \View::make('panelViews::edit', array('title' => $this->entity, - 'edit' => $this->edit, - 'helper_message' => $this->helper_message)); + return $this->edit->view( + 'panelViews::edit', + [ + 'title' => $this->entity, + 'edit' => $this->edit, + 'helper_message' => $this->helper_message + ] + ); } public function finalizeFilter()