https://github.com/jkoop/laravel-webdav-blade
Blade file (and simple controller) to emit WebDAV
https://github.com/jkoop/laravel-webdav-blade
blade blade-template laravel9x webdav webdav-server
Last synced: 2 months ago
JSON representation
Blade file (and simple controller) to emit WebDAV
- Host: GitHub
- URL: https://github.com/jkoop/laravel-webdav-blade
- Owner: jkoop
- License: gpl-2.0
- Created: 2022-05-13T03:00:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T03:01:05.000Z (about 4 years ago)
- Last Synced: 2025-01-11T19:35:58.879Z (over 1 year ago)
- Topics: blade, blade-template, laravel9x, webdav, webdav-server
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel WebDAV Blade
The WebDAV spec is a dumpster fire. Use this blade file (and example supporting files) to make your life easier.
Tested with Laravel v9.12.2.
## Usage
I tried my best to make the supporting files as self-explanatory as possible. Please feel free to read them.
## Some notes
+ WebDAV uses the PROPFIND method to get information about a file or folder. It is a kind of POST request (with a body), but I'm ignoring it here because I can. The request body just specifies what properties to return; we just assume they want everything.
+ PROPFINDs must respond with a 207 Multi-Status response, or 401, 403, 404, etc.
+ Before making a PROPFIND request, the client will make an OPTIONS request to determine if the server supports WebDAV.
+ Headers are picky! You can't `return` from a Controller or Laravel will add headers like Cookie, etc. Instead, you must `exit()`.