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

Create Native\Laravel\Facades\Notification #25

Merged
merged 5 commits into from
Jul 22, 2023
Merged

Conversation

Mombuyish
Copy link
Contributor

According to doc: https://nativephp.com/docs/1/the-basics/notifications that it needs Facade for notification, but missing now.

@Mombuyish Mombuyish changed the title Create Native\Laravel\Facades\Notification\Notification Create Native\Laravel\Facades\Notification Jul 21, 2023
namespace Native\Laravel\Facades;

use Illuminate\Support\Facades\Facade;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add notification methods into docblock!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just Object_ is a problem!
I fix it after this PR

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of consistency here, but you don't really need a facade for this class as it has its own factory: the static new() method

@Mombuyish
Copy link
Contributor Author

I fixed all of suggestions and import failed class.

@mpociot
Copy link
Member

mpociot commented Jul 22, 2023

I like the idea of consistency here, but you don't really need a facade for this class as it has its own factory: the static new() method

I wanted to get rid of all these static constructors as they hide the Client dependency. That's why this was also removed in most other classes - so I think a facade is better suited in this case 👍

@mpociot mpociot merged commit 70e687a into NativePHP:main Jul 22, 2023
@mpociot
Copy link
Member

mpociot commented Jul 22, 2023

Thank you

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.

4 participants