Make home tag translatable

This commit is contained in:
Kode
2019-06-13 19:07:38 +01:00
parent 21b1ef5e4b
commit fd2f7f27a6
4 changed files with 8 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ class ItemController extends Controller
{
//
$data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id');
$data['tags']->prepend('Home dashboard', 0);
$data['tags']->prepend(__('app.dashboard'), 0);
$data['current_tags'] = [];
return view('items.create', $data);
@@ -215,7 +215,7 @@ class ItemController extends Controller
// Get the item
$data['item'] = Item::find($id);
$data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id');
$data['tags']->prepend('Home dashboard', 0);
$data['tags']->prepend(__('app.dashboard'), 0);
$data['current_tags'] = $data['item']->tags();
//$data['current_tags'] = $data['item']->parent;
//die(print_r($data['current_tags']));