Download the PHP package ueberdosis/hocuspocus-laravel without Composer
On this page you can find all versions of the php package ueberdosis/hocuspocus-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ueberdosis/hocuspocus-laravel
More information about ueberdosis/hocuspocus-laravel
Files in ueberdosis/hocuspocus-laravel
Package hocuspocus-laravel
Short Description Integrates hocuspocus into Laravel with a few clicks
License MIT
Homepage https://github.com/ueberdosis/hocuspocus-laravel
Informations about the package hocuspocus-laravel
Hocuspocus for Laravel
Seamlessly integrates a Hocuspocus backend with Laravel.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
Usage
Add the CanCollaborate
trait to your user model:
Add the Collaborative
interface and IsCollaborative
trait to your documents and configure the collaborativeAttributes
:
Add policies to your app that handle authorization for your models. The name of the policy method is configurable inside the hocuspocus-laravel.php
config file. An example:
In the frontend, add the collaborationAccessToken
and collaborationDocumentName
to your WebSocket provider:
Configure a random secret key in your .env
:
Finally set up Hocuspocus with the webhook extension:
Credits
- Kris Siepert
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of hocuspocus-laravel with dependencies
illuminate/contracts Version ^8.0
spatie/laravel-package-tools Version ^1.4.3