Files
filament/src/View/Components/Nav.php
T
2020-11-25 12:11:15 -08:00

35 lines
701 B
PHP

<?php
namespace Filament\View\Components;
use Illuminate\View\Component;
use Filament\Helpers\Navigation;
class Nav extends Component
{
public $nav;
/**
* Create the component instance.
*
* @param string $type
* @param string $message
* @return void
*/
public function __construct()
{
$this->nav = app(Navigation::class)->items()
->sortBy('sort')
->all();
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\View\View|\Closure|string
*/
public function render()
{
return view('filament::components.nav');
}
}