Skip to content

Commit

Permalink
core message lang file moved to rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed May 9, 2024
1 parent 8ead126 commit e37ee42
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/Models/Audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

return [
'show' => action_link(route('auth.audits.show', $primaryKey), __('core::messages.action.show'), 'get'),
'destroy' => action_link(route('auth.audits.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'show' => action_link(route('auth.audits.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'destroy' => action_link(route('auth.audits.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
];
}

Expand Down
8 changes: 4 additions & 4 deletions src/Models/Favourite.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

$links = [
'show' => action_link(route('auth.favourites.show', $primaryKey), __('core::messages.action.show'), 'get'),
'update' => action_link(route('auth.favourites.update', $primaryKey), __('core::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.favourites.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.favourites.restore', $primaryKey), __('core::messages.action.restore'), 'post'),
'show' => action_link(route('auth.favourites.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'update' => action_link(route('auth.favourites.update', $primaryKey), __('restapi::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.favourites.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.favourites.restore', $primaryKey), __('restapi::messages.action.restore'), 'post'),
];

if ($this->getAttribute('deleted_at') == null) {
Expand Down
8 changes: 4 additions & 4 deletions src/Models/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

$links = [
'show' => action_link(route('auth.permissions.show', $primaryKey), __('core::messages.action.show'), 'get'),
'update' => action_link(route('auth.permissions.update', $primaryKey), __('core::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.permissions.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.permissions.restore', $primaryKey), __('core::messages.action.restore'), 'post'),
'show' => action_link(route('auth.permissions.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'update' => action_link(route('auth.permissions.update', $primaryKey), __('restapi::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.permissions.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.permissions.restore', $primaryKey), __('restapi::messages.action.restore'), 'post'),
];

if ($this->getAttribute('deleted_at') == null) {
Expand Down
8 changes: 4 additions & 4 deletions src/Models/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

$links = [
'show' => action_link(route('auth.roles.show', $primaryKey), __('core::messages.action.show'), 'get'),
'update' => action_link(route('auth.roles.update', $primaryKey), __('core::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.roles.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.roles.restore', $primaryKey), __('core::messages.action.restore'), 'post'),
'show' => action_link(route('auth.roles.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'update' => action_link(route('auth.roles.update', $primaryKey), __('restapi::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.roles.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.roles.restore', $primaryKey), __('restapi::messages.action.restore'), 'post'),
];

if ($this->getAttribute('deleted_at') == null) {
Expand Down
8 changes: 4 additions & 4 deletions src/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

$links = [
'show' => action_link(route('auth.teams.show', $primaryKey), __('core::messages.action.show'), 'get'),
'update' => action_link(route('auth.teams.update', $primaryKey), __('core::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.teams.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.teams.restore', $primaryKey), __('core::messages.action.restore'), 'post'),
'show' => action_link(route('auth.teams.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'update' => action_link(route('auth.teams.update', $primaryKey), __('restapi::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.teams.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.teams.restore', $primaryKey), __('restapi::messages.action.restore'), 'post'),
];

if ($this->getAttribute('deleted_at') == null) {
Expand Down
8 changes: 4 additions & 4 deletions src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ public function getLinksAttribute()
$primaryKey = $this->getKey();

$links = [
'show' => action_link(route('auth.users.show', $primaryKey), __('core::messages.action.show'), 'get'),
'update' => action_link(route('auth.users.update', $primaryKey), __('core::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.users.destroy', $primaryKey), __('core::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.users.restore', $primaryKey), __('core::messages.action.restore'), 'post'),
'show' => action_link(route('auth.users.show', $primaryKey), __('restapi::messages.action.show'), 'get'),
'update' => action_link(route('auth.users.update', $primaryKey), __('restapi::messages.action.update'), 'put'),
'destroy' => action_link(route('auth.users.destroy', $primaryKey), __('restapi::messages.action.destroy'), 'delete'),
'restore' => action_link(route('auth.users.restore', $primaryKey), __('restapi::messages.action.restore'), 'post'),
'reset-pin' => action_link(route('auth.users.reset-password-pin', [$primaryKey, 'pin']), __('auth::messages.reset.button.pin'), 'post'),
'reset-password' => action_link(route('auth.users.reset-password-pin', [$primaryKey, 'password']), __('auth::messages.reset.button.password'), 'post'),
'reset-both' => action_link(route('auth.users.reset-password-pin', [$primaryKey, 'both']), __('auth::messages.reset.button.both'), 'post'),
Expand Down

0 comments on commit e37ee42

Please sign in to comment.