27 lines
496 B
PHP
27 lines
496 B
PHP
<?php
|
|
|
|
namespace Modules\Admin\View\Components;
|
|
|
|
use Illuminate\View\Component;
|
|
use Illuminate\View\View;
|
|
|
|
class MenuComponent extends Component
|
|
{
|
|
private $menu;
|
|
/**
|
|
* Create a new component instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->menu = config('menu');
|
|
}
|
|
|
|
/**
|
|
* Get the view/contents that represent the component.
|
|
*/
|
|
public function render(): View | string
|
|
{
|
|
return view('admin::components.menucomponent');
|
|
}
|
|
}
|