Download the PHP package monicahq/laravel-sabre without Composer
On this page you can find all versions of the php package monicahq/laravel-sabre. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sabre
Sabre adapter for Laravel
Laravel-Sabre is an adapter to use Sabre.io DAV Server on Laravel.
Installation
You may use Composer to install this package into your Laravel project:
You don't need to add this package to your service providers.
Support
This package supports Laravel 5.6 and newer, and has been tested with php 7.1 and newer versions.
Configuration
If you want, you can publish the package config file to config/laravelsabre.php
:
If desired, you may disable LaravelSabre entirely using the enabled
configuration option:
Change the path
configuration to set the url path where the Sabre server will answer to.
Usage
Use LaravelSabre\LaravelSabre
class to add node collection and plugins to the Sabre server.
In the example above, DAVServiceProvider
is a service provider that has been added to the list of providers in config/app.php
file.
Nodes
LaravelSabre::nodes()
is used to add nodes collection to the Sabre server.
It may be an array, or a callback function, like in this example here:
Example:
Plugins
You can use either:
LaravelSbre::plugins()
to define a new array of plugins to add to the Sabre server. It may be a callback function.- or
LaravelSbre::plugin()
to add 1 plugin to the list of plugins.
Example:
Auth
Use the LaravelSabre::auth()
method with the Authorize::class
middleware gate, to allow access to some people, based on some criteria.
Example:
License
Author: Alexis Saettler
This project is part of MonicaHQ.
Copyright © 2019–2022.
Licensed under the MIT License. View license.
All versions of laravel-sabre with dependencies
sabre/dav Version ^4.0
thecodingmachine/safe Version ^2.0