Admin LTE with Laratrust
<p>I'm using Laratrust and try implements:
I created these files</p>

<p>App\MyMenuFilter.php</p>

<pre><code>&lt;?php

namespace App;

use JeroenNoten\LaravelAdminLte\Menu\Builder;
use JeroenNoten\LaravelAdminLte\Menu\Filters\FilterInterface;

class MyMenuFilter implements FilterInterface
{
    public function transform($item, Builder $builder)
    {
        if (isset($item['permission']) &amp;&amp; Laratrust::can($item['permission'])) {
            return false;
        }

        return $item;
    }
}
</code></pre>

<p>I changed this
config\adminlte.php</p>

<pre><code>'menu' =&gt; [
    'MAIN NAVIGATION',
    [
        'text' =&gt; 'Blog',
        'url'  =&gt; 'admin/blog',
        'permission'  =&gt; 'create-post', // Here
    ],
    #code
]

'filters' =&gt; [
    #code
    //JeroenNoten\LaravelAdminLte\Menu\Filters\GateFilter::class,
    App\MyMenuFilter::class,
],
</code></pre>

<p>But show this error:</p>

<p>Class 'App\Laratrust' not found (View: /var/www/html/multi-auth/vendor/jeroennoten/laravel-adminlte/resources/views/page.blade.php)</p>