diff --git a/readme.md b/readme.md index 1135d65..4f99e1e 100644 --- a/readme.md +++ b/readme.md @@ -62,7 +62,7 @@ Think of these as post-accessors. This allows Laraman to manipulate model data Example of using the date formatter ``` -public function __construct() +public function __configure() { $this->columns = [ [ diff --git a/src/Traits/LaramanController.php b/src/Traits/LaramanController.php index e00e8b1..c484533 100644 --- a/src/Traits/LaramanController.php +++ b/src/Traits/LaramanController.php @@ -48,6 +48,8 @@ trait LaramanController private function startup() { + $this->__configure(); + if (empty($this->model)) { $this->model = 'App\\' . str_singular(str_replace('Controller', '', class_basename($this))); }