Skip to content

Commit

Permalink
Add Laravel Echo and Pusher JS libraries for external websocket integ…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
mintopia committed Jun 18, 2024
1 parent c549928 commit 7cc72b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Policies/PartyPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class PartyPolicy
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
public function viewAny(?User $user): bool
{
return true;
}

/**
* Determine whether the user can view the model.
*/
public function view(User $user, Party $party): bool
public function view(?User $user, Party $party): bool
{
return true;
}
Expand Down
2 changes: 0 additions & 2 deletions public/js/echo.js

This file was deleted.

1 change: 1 addition & 0 deletions public/js/echo.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions public/js/pusher.min.js

Large diffs are not rendered by default.

0 comments on commit 7cc72b6

Please sign in to comment.