Basics
Used to create MoonShine layouts.
The Footer
component is designed to create a footer block.
make(iterable $components = [])
$components
- array of 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
The method copyright()
allows you to create a copyright block in the footer.
copyright(string|Closure $text)
Footer::make() ->copyright(fn (): string => 'Your brand')
Menu
The menu()
method allows you to create a menu block in the footer.
/** * @param array<string, string> $data */menu(array $data)
$data
- array of items where the key is the URL, and the value is the name of the menu item.
Footer::make() ->menu([ 'https://moonshine-laravel.com/docs' => 'Documentation', ])