first change
This commit is contained in:
26
Modules/Admin/app/View/Components/MenuComponent.php
Normal file
26
Modules/Admin/app/View/Components/MenuComponent.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user