Browse Source

Fix for tags not showing

pull/370/head
Kode 6 years ago
parent
commit
f272dd13ce
  1. 4
      app/Http/Controllers/ItemController.php
  2. 2
      config/app.php

4
app/Http/Controllers/ItemController.php

@ -30,11 +30,11 @@ class ItemController extends Controller
{ {
$data['apps'] = Item::whereHas('parents', function ($query) { $data['apps'] = Item::whereHas('parents', function ($query) {
$query->where('id', 0); $query->where('id', 0);
})->pinned()->orderBy('order', 'asc')->get(); })->orWhere('type', 1)->pinned()->orderBy('order', 'asc')->get();
$data['all_apps'] = Item::whereHas('parents', function ($query) { $data['all_apps'] = Item::whereHas('parents', function ($query) {
$query->where('id', 0); $query->where('id', 0);
})->orderBy('order', 'asc')->get(); })->orWhere('type', 1)->orderBy('order', 'asc')->get();
//$data['all_apps'] = Item::doesntHave('parents')->get(); //$data['all_apps'] = Item::doesntHave('parents')->get();
//die(print_r($data['apps'])); //die(print_r($data['apps']));

2
config/app.php

@ -14,7 +14,7 @@ return [
*/ */
'name' => env('APP_NAME', 'Heimdall'), 'name' => env('APP_NAME', 'Heimdall'),
'version' => '2.2.2', 'version' => '2.2.3',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

Loading…
Cancel
Save