Skip to content

Commit

Permalink
Merge pull request #1 from ChrisThompsonTLDR/fixing-construct
Browse files Browse the repository at this point in the history
Fixing construct
  • Loading branch information
taylornotwell authored Mar 26, 2018
2 parents 4032909 + 89e7b72 commit 7fde2d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
[
Expand Down
2 changes: 2 additions & 0 deletions src/Traits/LaramanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 7fde2d3

Please sign in to comment.