diff --git a/README.md b/README.md index 1032cb817..c3c8c718e 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ We highly appreciate you sending us a postcard from your hometown, mentioning wh ## Documentation -You'll find the documentation on [https://spatie.be/docs/laravel-medialibrary](https://spatie.be/docs/laravel-medialibrary/v10). +You'll find the documentation on [https://spatie.be/docs/laravel-medialibrary](https://spatie.be/docs/laravel-medialibrary/v11). Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the media library? Feel free to [create an issue on GitHub](https://github.com/spatie/laravel-medialibrary/issues), we'll try to address it as soon as possible. diff --git a/docs/advanced-usage/attaching-media-in-mails.md b/docs/advanced-usage/attaching-media-in-mails.md index ffa225fe2..75155fe1a 100644 --- a/docs/advanced-usage/attaching-media-in-mails.md +++ b/docs/advanced-usage/attaching-media-in-mails.md @@ -3,7 +3,7 @@ title: Attaching media in mails weight: 9 --- -Laravel allows [to attach all sorts of classes](https://laravel.com/docs/9.x/mail#attachable-objects) in mails. The `Media` model implements Laravel's `Attachable` interface, so you can attach `Media` models directly in mails. +Laravel allows [to attach all sorts of classes](https://laravel.com/docs/10.x/mail#attachable-objects) in mails. The `Media` model implements Laravel's `Attachable` interface, so you can attach `Media` models directly in mails. ```php @@ -67,6 +67,6 @@ class BlogPostThumbnailMail extends Mailable ## Customizing the attachment -By default, the attachment will use the `file_name` and `mime_type` properties to configure Laravel's `Attachment` class. To override how `Attachments` are made, [use a custom media model](https://spatie.be/docs/laravel-medialibrary/v10/advanced-usage/using-your-own-model), and override the `toMailAttachment` method. +By default, the attachment will use the `file_name` and `mime_type` properties to configure Laravel's `Attachment` class. To override how `Attachments` are made, [use a custom media model](/docs/laravel-medialibrary/v11/advanced-usage/using-your-own-model), and override the `toMailAttachment` method. diff --git a/docs/advanced-usage/customising-database-connections.md b/docs/advanced-usage/customising-database-connections.md index 69a68602d..bdc957ea0 100644 --- a/docs/advanced-usage/customising-database-connections.md +++ b/docs/advanced-usage/customising-database-connections.md @@ -7,7 +7,7 @@ weight: 13 The built-in model (`Spatie\MediaLibrary\MediaCollections\Models\Media`) will use the default database connection set for your application. -If you need to change this database connection, you can create a custom model and set the `$connection` property (https://laravel.com/docs/9.x/eloquent#database-connections). See Using your own model for more information. +If you need to change this database connection, you can create a custom model and set the `$connection` property (https://laravel.com/docs/10.x/eloquent#database-connections). See Using your own model for more information. ```php toMediaCollection(); ``` -If you need to customise the database connection further before fetching or adding media, use you can do `$model->setConnection('landlord')`. \ No newline at end of file +If you need to customise the database connection further before fetching or adding media, use you can do `$model->setConnection('landlord')`. diff --git a/docs/advanced-usage/working-with-multiple-filesystems.md b/docs/advanced-usage/working-with-multiple-filesystems.md index 7e42737b3..5a66bd14a 100644 --- a/docs/advanced-usage/working-with-multiple-filesystems.md +++ b/docs/advanced-usage/working-with-multiple-filesystems.md @@ -5,7 +5,7 @@ weight: 1 By default, all files are stored on the disk specified as the `disk_name` in the config file. -Files can also be stored [on any filesystem that is configured in your Laravel app](http://laravel.com/docs/9.x/filesystem#configuration). When adding a file to the media library you can choose on which disk the file should be stored. This is useful when you have a combination of small files that should be stored locally and big files that you want to save on S3. +Files can also be stored [on any filesystem that is configured in your Laravel app](http://laravel.com/docs/10.x/filesystem#configuration). When adding a file to the media library you can choose on which disk the file should be stored. This is useful when you have a combination of small files that should be stored locally and big files that you want to save on S3. `toMediaCollection` accepts a disk name as a second parameter: @@ -16,7 +16,7 @@ $yourModel->addMedia($pathToAFile)->toMediaCollection('images', 's3'); ## Storing conversions on a separate disk -You can let the media library store [your conversions](https://spatie.be/docs/laravel-medialibrary/v10/converting-images/defining-conversions) and [responsive images](https://spatie.be/docs/laravel-medialibrary/v10/responsive-images/getting-started-with-responsive-images) on a disk other than the one where you save the original item. Pass the name of the disk where you want conversion to be saved to the `storingConversionsOnDisk` method. +You can let the media library store [your conversions](/docs/laravel-medialibrary/v11/converting-images/defining-conversions) and [responsive images](/docs/laravel-medialibrary/v11/responsive-images/getting-started-with-responsive-images) on a disk other than the one where you save the original item. Pass the name of the disk where you want conversion to be saved to the `storingConversionsOnDisk` method. Here's an example where the original file is saved on the local disk and the conversions on S3. diff --git a/docs/api/defining-conversions.md b/docs/api/defining-conversions.md index ef4f92a27..d1d142f83 100644 --- a/docs/api/defining-conversions.md +++ b/docs/api/defining-conversions.md @@ -5,7 +5,7 @@ weight: 2 A media conversion can be added to your model in the `registerMediaConversions`-function. It should start with a call to `addMediaConversion`. From there on you can use any of the methods available in the API. They are all chainable. -Take a look in the [Defining conversions section](/laravel-medialibrary/v10/converting-images/defining-conversions/) +Take a look in the [Defining conversions section](/docs/laravel-medialibrary/v11/converting-images/defining-conversions/) for more details. ## General methods @@ -56,5 +56,5 @@ You can learn more on native lazy loading [in this post on css-tricks](https://c ## Image manipulations -You may add any call to one of [the manipulation functions](https://docs.spatie.be/image) available on [the spatie/image package](https://github.com/spatie/image). +You may add any call to one of [the manipulation functions](https://spatie.be/docs/image) available on [the spatie/image package](https://github.com/spatie/image). diff --git a/docs/converting-images/defining-conversions.md b/docs/converting-images/defining-conversions.md index 9e1f42e37..a19ca0c54 100644 --- a/docs/converting-images/defining-conversions.md +++ b/docs/converting-images/defining-conversions.md @@ -7,9 +7,9 @@ When adding files to the media library it can automatically create derived versi Media conversions will be executed whenever a `jpg`, `png`, `svg`, `webp`, `avif`, `pdf`, `mp4 `, `mov` or `webm` file is added to the media library. By default, the conversions will be saved as a `jpg` files. This can be overwritten using the `format()` or `keepOriginalImageFormat()` methods. -Internally, [spatie/image](https://docs.spatie.be/image/v1/) is used to manipulate the images. You can use [any manipulation function](https://docs.spatie.be/image) from that package. +Internally, [spatie/image](https://spatie.be/docs/image/v1) is used to manipulate the images. You can use [any manipulation function](https://spatie.be/docs/image) from that package. -Please check [the image generator docs](/laravel-medialibrary/v10/converting-other-file-types/using-image-generators) for additional installation requirements when working with PDF, SVG or video formats. +Please check [the image generator docs](/docs/laravel-medialibrary/v11/converting-other-file-types/using-image-generators) for additional installation requirements when working with PDF, SVG or video formats. ## Are you a visual learner? @@ -94,7 +94,7 @@ $media->getUrl('old-picture') // the url to the sepia, bordered version ## Performing conversions on specific collections -By default a conversion will be performed on all files regardless of which [collection](/laravel-medialibrary/v10/working-with-media-collections/simple-media-collections) is used. Conversions can also be performed on specific collections by adding a call to `performOnCollections`. +By default a conversion will be performed on all files regardless of which [collection](/docs/laravel-medialibrary/v11/working-with-media-collections/simple-media-collections) is used. Conversions can also be performed on specific collections by adding a call to `performOnCollections`. This is how that looks like in the model: @@ -122,7 +122,7 @@ $media->getUrl('thumb') // returns '' ## Queuing conversions -By default, a conversion will be added to the connection and queue that you've [specified in the configuration](/laravel-medialibrary/v10/installation-setup). If you want your image to be created directly (and not on a queue) use `nonQueued` on a conversion. +By default, a conversion will be added to the connection and queue that you've [specified in the configuration](/docs/laravel-medialibrary/v11/installation-setup). If you want your image to be created directly (and not on a queue) use `nonQueued` on a conversion. ```php // in your model diff --git a/docs/converting-images/optimizing-converted-images.md b/docs/converting-images/optimizing-converted-images.md index a44180181..50f1ddf5e 100644 --- a/docs/converting-images/optimizing-converted-images.md +++ b/docs/converting-images/optimizing-converted-images.md @@ -27,7 +27,7 @@ The package will use these optimizers if they are present on your system: - [Gifsicle](http://www.lcdf.org/gifsicle/) - [Avifenc](https://github.com/AOMediaCodec/libavif/blob/main/doc/avifenc.1.md) -Head over to [the installation page](https://docs.spatie.be/laravel-medialibrary/v10/installation-setup#optimization-tools) to learn how to install these. +Head over to [the installation page](https://spatie.be/docs/laravel-medialibrary/v11/installation-setup#content-setting-up-optimization-tools) to learn how to install these. ## Are you a visual learner? diff --git a/docs/converting-other-file-types/using-image-generators.md b/docs/converting-other-file-types/using-image-generators.md index 963f39627..5c0f8efae 100644 --- a/docs/converting-other-file-types/using-image-generators.md +++ b/docs/converting-other-file-types/using-image-generators.md @@ -16,9 +16,9 @@ $this->addMediaConversion('thumb') The media library includes image generators for the following file types: -- [PDF](/laravel-medialibrary/v10/converting-other-file-types/using-image-generators#pdf) -- [SVG](/laravel-medialibrary/v10/converting-other-file-types/using-image-generators#svg) -- [Video](/laravel-medialibrary/v10/converting-other-file-types/using-image-generators#video) +- [PDF](/docs/laravel-medialibrary/v11/converting-other-file-types/using-image-generators#pdf) +- [SVG](/docs/laravel-medialibrary/v11/converting-other-file-types/using-image-generators#svg) +- [Video](/docs/laravel-medialibrary/v11/converting-other-file-types/using-image-generators#video) ## PDF diff --git a/docs/handling-uploads-with-media-library-pro/customizing-css.md b/docs/handling-uploads-with-media-library-pro/customizing-css.md index a0f2a80c5..c95957244 100644 --- a/docs/handling-uploads-with-media-library-pro/customizing-css.md +++ b/docs/handling-uploads-with-media-library-pro/customizing-css.md @@ -93,7 +93,7 @@ mix.purgeCss({ whitelistPatterns: [/^media-library/] }); The components have three major sections that are rendered in this order: the validation errors, the items and the uploader. -![Screenshot of component](/docs/laravel-medialibrary/v10/images/pro/sections.png) +![Screenshot of component](/docs/laravel-medialibrary/v11/images/pro/sections.png) You can change the order of these sections to be more consistent with your app, without having to create a custom component from scratch. @@ -108,4 +108,4 @@ Add the following lines to your CSS, and switch the order of the sections around } ``` -![Screenshot of component with sections in different order](/docs/laravel-medialibrary/v10/images/pro/sections-order-switched.png) +![Screenshot of component with sections in different order](/docs/laravel-medialibrary/v11/images/pro/sections-order-switched.png) diff --git a/docs/handling-uploads-with-media-library-pro/handling-uploads-with-livewire-2.md b/docs/handling-uploads-with-media-library-pro/handling-uploads-with-livewire-2.md index e1f6271a6..13cf2e65a 100644 --- a/docs/handling-uploads-with-media-library-pro/handling-uploads-with-livewire-2.md +++ b/docs/handling-uploads-with-media-library-pro/handling-uploads-with-livewire-2.md @@ -29,7 +29,7 @@ If you are having troubles using the components, take a look in that app to see You can use `x-media-library-attachment` component to upload a single file. -![Screenshot of the attachment component](/docs/laravel-medialibrary/v10/images/pro/attachment.png) +![Screenshot of the attachment component](/docs/laravel-medialibrary/v11/images/pro/attachment.png) Here's how that might look like in the view of your Livewire component: @@ -141,7 +141,7 @@ Uploading multiple files is very similar to uploading a single file. The only th ``` -![Screenshot of the attachment component](/docs/laravel-medialibrary/v10/images/pro/multiple.png) +![Screenshot of the attachment component](/docs/laravel-medialibrary/v11/images/pro/multiple.png) In your Livewire component you must: - use the `Spatie\MediaLibraryPro\Http\Livewire\Concerns\WithMedia` trait @@ -222,7 +222,7 @@ You can manage the entire contents of a media library collection with `x-media-l component is intended for use in admin sections. Here is an example where we are going to administer an `images` collection of a `$blogPost` model. We assume that you -already [prepared the model](/docs/laravel-medialibrary/v10/basic-usage/preparing-your-model) to handle uploads. +already [prepared the model](/docs/laravel-medialibrary/v11/basic-usage/preparing-your-model) to handle uploads. ```html
``` -![Screenshot of the attachment component](/docs/laravel-medialibrary/v10/images/pro/multiple.png) +![Screenshot of the attachment component](/docs/laravel-medialibrary/v11/images/pro/multiple.png) In your Livewire component you must: - use the `Spatie\MediaLibraryPro\Livewire\Concerns\WithMedia` trait @@ -206,7 +206,7 @@ You can manage the entire contents of a media library collection with `livewire: component is intended for use in admin sections. Here is an example where we are going to administer an `images` collection of a `$blogPost` model. We assume that you -already [prepared the model](/docs/laravel-medialibrary/v10/basic-usage/preparing-your-model) to handle uploads. +already [prepared the model](/docs/laravel-medialibrary/v11/basic-usage/preparing-your-model) to handle uploads. ```html