Button

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

To add a button with a link to a form

use MoonShine\Decorations\Button;
 
//...
public function fields(): array
{
return [
Button::make(
'Link to article',
$this->getItem() ? route('articles.show', $this->getItem()) : '/',
true
)->icon('clip'),
];
}
//...