---
title: "Global media — Media Library for Laravel | Roundly"
description: "Store ownerless, app-wide assets — logos, shared PDFs — through the MediaLibrary facade."
url: https://roundly-consulting.com/open-source/docs/media-library-for-laravel/global-media
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Media Library for Laravel](https://roundly-consulting.com/open-source/docs/media-library-for-laravel.md)

# Global media

The flat add\* methods on the MediaLibrary facade store media with no owning model — brand logos, shared PDFs, app-wide assets:

```php
use RoundlyConsulting\MediaLibrary\Facades\MediaLibrary;

$logo = MediaLibrary::add(storage_path('brand/logo.svg'))
    ->usingName('Primary logo')
    ->toBucket('brand');

MediaLibrary::bucket('brand')->get();            // Builder<Media> over a global bucket (unbound drafts excluded)
MediaLibrary::find($logo->uuid);                 // any media by uuid
MediaLibrary::clearBucket('brand');              // delete the global bucket; returns the count
```

Global media gets the same storage, URLs and dedup as model media. Unbound drafts are not global media, so bucket() and clearBucket() leave them alone. It has no owning bucket definition, so it has no variants. Move media between a model and a global bucket with MediaLibrary::move($media, to: null, bucket: 'brand').

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/media-library-for-laravel.md)
