LaravelPackages.net
Acme Inc.
Toggle sidebar
techlify/laravel-file-manager

A Module that provides a File Management REST API for Laravel

7
0
0.1.1
About techlify/laravel-file-manager

techlify/laravel-file-manager is a Laravel package for a module that provides a file management rest api for laravel. It currently has 0 GitHub stars and 7 downloads on Packagist (latest version 0.1.1). Install it with composer require techlify/laravel-file-manager. Discover more Laravel packages by techlify or browse all Laravel packages to compare alternatives.

Last updated

Techlify FileManager

A simple package for Laravel that provides a File Management RESTful API

Installation

Install this package with composer using the following command:

composer require techlify-inc/file-manager

Run migrations

$ php artisan migrate

Usage

You can now use the API methods from your frontend

POST techlify-files/upload - uploads a file to the Laravel code base and returns the name of the file

There is also a full database of files that can be stored. The following information can be sent in the HTTP requests and is stored:

owner_type - String, the type of model that owns this file. ex: Person if the file belongs to a person
owner_id - id of the owner object
title - a title for the file

Here are the Requests:

POST    techlify-files - stores a new file record
GET     techlify-files - gets a list of all stored files
PUT     techlify-files/{id} - updates a file record
GET     techlify-files/{id} - loads a single file record
DELETE  techlify-files/{id} - Deletes a file

Star History Chart