S
S
serik2020-04-16 13:30:12
Laravel
serik, 2020-04-16 13:30:12

Why doesn't it find the template View [auth.navbar] not found?

I connected the admin panel, I'm trying to make modifications, but an error is returned:
View [auth.navbar] not found.

View [auth.navbar] not found. (View: C:\Users\sereg\Desktop\blog\vendor\laravelrus\sleepingowl\resources\views\default\_layout\inner.blade.php)


Admin/Widgets/NavigationUserBlock.php
<?php

namespace Admin\Widgets;

use AdminTemplate;
use SleepingOwl\Admin\Widgets\Widget;

class NavigationUserBlock extends Widget
{
    public function active()
    {
        return true;
    }

    public function toHtml()
    {
        return view('admin::auth.navbar', [
            'user' => auth()->user()
        ])->render();
    }

    public function template()
    {
        return \AdminTemplate::getViewPath('_partials.header');
    }

    public function block()
    {
        return 'navbar.right';
    }
}

5e987360b16b7138639341.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question