Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChangeLog #244

Merged
merged 1 commit into from
May 10, 2023
Merged

ChangeLog #244

merged 1 commit into from
May 10, 2023

Conversation

lee-to
Copy link
Member

@lee-to lee-to commented May 10, 2023

Moved to FormComponent

Example

 public function components(): array
    {
        return [
            ChangeLogFormComponent::make('Change log')
                ->canSee(fn ($user) => $user->moonshine_user_role_id === MoonshineUserRole::DEFAULT_ROLE_ID),
        ];
    }

Usage

  1. Use trait
  2. Add component

@lee-to lee-to merged commit d694c6f into moonshine-software:1.5.x May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant