|
|
@ -26,7 +26,7 @@ class {$this->model_name} extends Model |
|
|
|
|
|
|
|
|
public function nameLink() |
|
|
public function nameLink() |
|
|
{ |
|
|
{ |
|
|
return link_to_route('{$this->table_name}.show', \$this->name, [\$this->id], [ |
|
|
|
|
|
|
|
|
return link_to_route('{$this->table_name}.show', \$this->name, [\$this], [ |
|
|
'title' => trans( |
|
|
'title' => trans( |
|
|
'app.show_detail_title', |
|
|
'app.show_detail_title', |
|
|
['name' => \$this->name, 'type' => trans('{$this->lang_name}.{$this->lang_name}')] |
|
|
['name' => \$this->name, 'type' => trans('{$this->lang_name}.{$this->lang_name}')] |
|
|
@ -63,7 +63,7 @@ class Category extends Model |
|
|
|
|
|
|
|
|
public function nameLink() |
|
|
public function nameLink() |
|
|
{ |
|
|
{ |
|
|
return link_to_route('categories.show', \$this->name, [\$this->id], [ |
|
|
|
|
|
|
|
|
return link_to_route('categories.show', \$this->name, [\$this], [ |
|
|
'title' => trans( |
|
|
'title' => trans( |
|
|
'app.show_detail_title', |
|
|
'app.show_detail_title', |
|
|
['name' => \$this->name, 'type' => trans('category.category')] |
|
|
['name' => \$this->name, 'type' => trans('category.category')] |
|
|
|