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

Removing use of user model in public property #22

Merged
merged 2 commits into from
Feb 25, 2023

Conversation

mikebarlow
Copy link
Owner

@mikebarlow mikebarlow commented Feb 7, 2023

The goal here was to remove the use of the User model within the public properties. The bulk of this is taken from the initial PR work (#21 ) from @pjkellar but with some tweaks.

The tweaks are on the basis that, technically Megaphone and Laravel notifications could be attached to something other than a user modal (i.e. a Team). So the tweaks are to allow a $notifiableId to be passed into the component from the view, then only if that is not passed in, will it then simply fallback to the logged in user.

Put this in draft for now as I want to perform some more tests and update the documentation to reflect this change.

Fixes #20

@mikebarlow mikebarlow marked this pull request as ready for review February 25, 2023 20:50
@mikebarlow mikebarlow merged commit bbd9ffb into main Feb 25, 2023
@mikebarlow mikebarlow deleted the remove-public-user-prop branch February 25, 2023 20:52
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.

public $user : data of object and related objects visible for user
1 participant