Skip to content

huydevct/media-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Config App

  • add this line to service provider config/app.php
\Huy\MediaStorage\providers\MediaStorageServiceProvider::class,
  • run this command to publish config
php artisan vendor:publish --tag=media_storage
# Vị trí file config  config/media_storage.php
  • add these lines to .env
IMAGE_MEDIUM=
IMAGE_SMALL=
IMAGE_EXTRA_SMALL=
VIDEO_MEDIUM=
VIDEO_SMALL=
  • route of these api
http://localhost:8000/storage/images
http://localhost:8000/storage/videos
  • you can replace your domain on http://localhost:8000
  • request accept form-data with key file or files
  • this is a example of these apis' postman
curl --location 'http://localhost:8000/storage/images' \
--header 'Accept: application/json' \
--form 'file=@"your-file"'
  • if you got nothing after call these apis, you need to remember add header Accept: application/json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages