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 cda0acb commit c3bb77b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Models/Promotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public function getLinksAttribute(): array
$primaryKey = $this->getKey();

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

if ($this->getAttribute('deleted_at') == null) {
Expand Down

0 comments on commit c3bb77b

Please sign in to comment.