Basics
Used to create MoonShine layouts.
The Footer component is designed to create a footer block.
make(iterable $components = [])make(iterable $components = [])
$components- array of components.
use MoonShine\UI\Components\Layout\Footer;Footer::make([// ...]),use MoonShine\UI\Components\Layout\Footer;Footer::make([// ...]),
<x-moonshine::layout.footercopyright="Your brand":menu="['https://moonshine-laravel.com/docs' => 'Documentation']">Any content</x-moonshine::layout.footer><x-moonshine::layout.footercopyright="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)copyright(string|Closure $text)
Footer::make()->copyright(fn (): string => 'Your brand')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)/*** @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',])Footer::make()->menu(['https://moonshine-laravel.com/docs' => 'Documentation',])