SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Docs Laravel-medialibrary-pro Advanced Customize the upload URL

Other versions for crawler v6
    • Introduction
    • Requirements
    • License
    • Getting help
    • Upgrading
    • About us

    Blade

    • Installation
    • Usage

    Livewire

    • Installation
    • Attachments
    • Collection
    • Uploading to S3

    React

    • Installation
    • Usage
    • Available props
    • Inertia
    • Next.js
    • Translations
    • Vapor support
    • Creating custom components

    Vue.js

    • Installation
    • Usage
    • Available props
    • Inertia
    • Translations
    • Vapor support
    • Creating custom components

    Security

    • Authorisation
    • Configure allowed mime types
    • Rate limiting

    Advanced

    • Customizing CSS
    • Customize the preview images
    • Customize the upload URL
    • Usage in a frontend repository

    Legacy

    • Livewire 2
    • Laravel Mix

Customize the upload URL

On this page

  1. Customizing the upload URL

##Customizing the upload URL

You can customize the upload url by passing a base url to the macro.

// Probably routes/web.php

Route::mediaLibrary('my-custom-url');

This will register a route at /my-custom-url/uploads

Customize the preview images
Usage in a frontend repository
Help us improve this page

On this page

  • Customizing the upload URL
Mailcoach

Check out our full-featured (self-hosted) email marketing solution

Help us improve this page
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

    Enter a search term to find results in the documentation.