Issues (210)

src/View/Components/Sidebar.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pratiksh\Adminetic\View\Components;
4
5
use Adminetic;
0 ignored issues
show
The type Adminetic was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Illuminate\View\Component;
7
8
class Sidebar extends Component
9
{
10
    /**
11
     * Get the view / contents that represent the component.
12
     *
13
     * @return \Illuminate\Contracts\View\View|\Closure|string
14
     */
15
    public function render()
16
    {
17
        $menus = Adminetic::menus() ?? [];
18
19
        return view('adminetic::components.sidebar', compact('menus'));
20
    }
21
}
22