Skip to content

Commit

Permalink
Update repositories.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemjohn committed Sep 3, 2021
1 parent 49a1d2d commit f29ed9b
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 48 deletions.
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/ClientResourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\User\Repositories\Eloquent\Filters\ClientResourceFilter as BasePresenter;

class ClientResourceFilter extends BasePresenter
{
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/MasterResourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Master\Repositories\Eloquent\Filters\MasterResourceFilter as BasePresenter;

class MasterResourceFilter extends BasePresenter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Roles\Repositories\Eloquent\Filters\PermissionResourceFilter as BasePresenter;

class PermissionResourceFilter extends BasePresenter
{
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/RoleResourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Roles\Repositories\Eloquent\Filters\RoleResourceFilter as BasePresenter;

class RoleResourceFilter extends BasePresenter
{
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/SettingPublicFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Settings\Repositories\Eloquent\Filters\SettingPublicFilter as BasePresenter;

class SettingPublicFilter extends BasePresenter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Settings\Repositories\Eloquent\Filters\SettingResourceFilter as BasePresenter;

class SettingResourceFilter extends BasePresenter
{
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/TeamResourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\Team\Repositories\Eloquent\Filters\TeamResourceFilter as BasePresenter;

class TeamResourceFilter extends BasePresenter
{
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Eloquent/Filters/UserResourceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Repositories\Eloquent\Filters;

use Litepie\User\Repositories\Eloquent\Filters\ClientPublicFilter as BasePresenter;
use Litepie\User\Repositories\Eloquent\Filters\UserResourceFilter as BasePresenter;

class UserResourceFilter extends BasePresenter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
class PermissionListPresenter extends BasePresenter
{


}
37 changes: 0 additions & 37 deletions app/Repositories/Eloquent/Presenters/RoleItemPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,4 @@

class RoleItemPresenter extends BasePresenter
{

public function itemLink()
{
return guard_url('role/role') . '/' . $this->getRouteKey();
}

public function title()
{
if ($this->title != '') {
return $this->title;
}

if ($this->name != '') {
return $this->name;
}

return 'None';
}

public function toArray()
{
return [
'id' => $this->getRouteKey(),
'title' => $this->title(),
'name' => $this->name,
'slug' => $this->slug,
'description' => $this->description,
'level' => $this->level,
'created_at' => !is_null($this->created_at) ? $this->created_at->format('Y-m-d H:i:s') : null,
'updated_at' => !is_null($this->updated_at) ? $this->updated_at->format('Y-m-d H:i:s') : null,
'meta' => [
'exists' => $this->exists(),
'link' => $this->itemLink(),
'upload_url' => $this->getUploadURL(''),
],
];
}
}
1 change: 0 additions & 1 deletion app/Repositories/Eloquent/Presenters/RoleListPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
class RoleListPresenter extends BasePresenter
{


}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@

class SettingItemPresenter extends BasePresenter
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
class SettingListPresenter extends BasePresenter
{


}

0 comments on commit f29ed9b

Please sign in to comment.