Skip to content

Commit

Permalink
Merge branch 'master' of github.com:BKWLD/decoy into 5.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Feb 9, 2018
2 parents 3cae304 + 2183949 commit e9ab73c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
23 changes: 3 additions & 20 deletions classes/Controllers/Admins.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@
*/
class Admins extends Base
{
/**
* Normal Decoy controller config. There is some increased specifity so that
* subclassing controllers don't have to have to specify everything.
*
* @var string
*/
protected $description = 'Users who have access to the admin.';

/**
* @var array
*/
protected $columns = [
'Name' => 'getAdminTitleHtmlAttribute',
'Status' => 'getAdminStatusAttribute',
'Email' => 'email',
];

/**
* @var string
*/
Expand Down Expand Up @@ -102,7 +85,6 @@ public function index()
if (!app('decoy.user')->can('read', 'admins')) {
return Redirect::to(app('decoy.user')->getUserUrl());
}

return parent::index();
}

Expand All @@ -114,7 +96,6 @@ public function index()
public function edit($id)
{
unset(Admin::$rules['password']);

return parent::edit($id);
}

Expand Down Expand Up @@ -185,7 +166,9 @@ public function enable($id)
}

/**
* Populate protected properties on init
* Populate protected properties with localized labels on init
*
* @return $this
*/
public function __construct()
{
Expand Down
4 changes: 2 additions & 2 deletions docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public function services() {
->withTimestamps();
}
public function servicesAsChild() {
return $this->morphedByMany('App\Service', 'serviceable')-
>withTimestamps();
return $this->morphedByMany('App\Service', 'serviceable')
->withTimestamps();
}
```

Expand Down

0 comments on commit e9ab73c

Please sign in to comment.