# Basic
moonshine() // MoonShine instancemoonshineRegister() // To register apply classesmoonshineRequest() // With access to resource, pages, posts and componentsmoonshineAssets() // Working with assets (MoonShineAssets instance)moonshineMenu() // Get menu listmoonshineLayout() // Render template contents
#
Link to page to_page
$page - Page or page alias (Optional)
$resource - Resource or resource alias (Optional)
$params - Additional query
$redirect - If necessary, perform a redirect immediately
$fragment - URL will be used for Fragment loading
to_page(page: 'form-page');to_page(page: IndexPage::class);to_page(page: IndexPage::class, resource: PostResource::class);to_page(page: new IndexPage(), resource: new PostResource());to_page(page: 'form-page', redirect: true);to_page(page: 'form-page', fragment: true);
# FormBuilder
form( string $action = '', string $method = 'POST', Fields|array $fields = [], array $values = [])
# TableBuilder
tabel( Fields|array $fields = [], iterable $items = [], ?LengthAwarePaginator $paginator = null)
# ActionButton
actionBtn( Closure|string $label, Closure|string|null $url = null, mixed $item = null)
# Find apply field (filter) class
findFieldApply( Field $field, string $type, string $for); findFieldApply($field, 'filters', ModelResource::class);
# Display 404
oops404()