moonshine () // MoonShine instance
moonshineRegister () // To register apply classes
moonshineRequest () // With access to resource, pages, posts and components
moonshineAssets () // Working with assets (MoonShineAssets instance)
moonshineMenu () // Get menu list
moonshineLayout () // Render template contents
moonshine() // MoonShine instance
moonshineRegister() // To register apply classes
moonshineRequest() // With access to resource, pages, posts and components
moonshineAssets() // Working with assets (MoonShineAssets instance)
moonshineMenu() // Get menu list
moonshineLayout() // Render template contents
$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 );
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);
form (
string $action = '' ,
string $method = 'POST' ,
Fields |array $fields = [],
array $values = []
)
form(
string $action = '',
string $method = 'POST',
Fields|array $fields = [],
array $values = []
)
tabel (
Fields |array $fields = [],
iterable $items = [],
? LengthAwarePaginator $paginator = null
)
tabel(
Fields|array $fields = [],
iterable $items = [],
?LengthAwarePaginator $paginator = null
)
actionBtn (
Closure |string $label,
Closure |string| null $url = null ,
mixed $item = null
)
actionBtn(
Closure|string $label,
Closure|string|null $url = null,
mixed $item = null
)
findFieldApply (
Field $field,
string $type,
string $for
);
findFieldApply ($field, 'filters' , ModelResource ::class );
findFieldApply(
Field $field,
string $type,
string $for
);
findFieldApply($field, 'filters', ModelResource::class);