Основы
Используется для создания шаблонов в MoonShine.
Компонент Footer
предназначен для создания блока подвала.
make(iterable $components = [])
$components
- массив компонентов.
use MoonShine\UI\Components\Layout\Footer; Footer::make([ // ...]),
<x-moonshine::layout.footer copyright="Your brand" :menu="['https://moonshine-laravel.com/docs' => 'Documentation']">Any content</x-moonshine::layout.footer>
Авторские права
Метод copyright()
позволяет оформить блок авторских прав в подвале.
copyright(string|Closure $text)
Footer::make() ->copyright(fn (): string => 'Your brand')
Меню
Метод menu()
позволяет оформить блок меню в подвале.
/** * @param array<string, string> $data */menu(array $data)
$data
- массив элементов, где ключ - это url, а значение - название пункта меню.
Footer::make() ->menu([ 'https://moonshine-laravel.com/docs' => 'Documentation', ])