From 2ce30ad9cf0095c6b979c0386763a0c9ee8f4c19 Mon Sep 17 00:00:00 2001 From: Dardan <46499848+dardanmulaj@users.noreply.github.com> Date: Sat, 16 Dec 2023 02:23:41 +0100 Subject: [PATCH 01/31] Update installation-setup.md --- docs/installation-setup.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/installation-setup.md b/docs/installation-setup.md index 15329a22c..9e3e7546a 100644 --- a/docs/installation-setup.md +++ b/docs/installation-setup.md @@ -8,10 +8,10 @@ Media Library can be installed via Composer: If you only use the base package issue this command: ```bash -composer require "spatie/laravel-medialibrary:^10.0.0" +composer require "spatie/laravel-medialibrary:^11.0.0" ``` -If you have a license for Media Library Pro, you should install `spatie/laravel-media-library-pro` instead. Please refer to our [Media Library Pro installation instructions](https://spatie.be/docs/laravel-medialibrary/v10/handling-uploads-with-media-library-pro/installation) to continue. +If you have a license for Media Library Pro, you should install `spatie/laravel-media-library-pro` instead. Please refer to our [Media Library Pro installation instructions](https://spatie.be/docs/laravel-medialibrary/v11/handling-uploads-with-media-library-pro/installation) to continue. ## Preparing the database @@ -227,7 +227,7 @@ return [ * images. By default we optimize for filesize and create variations that each are 20% * smaller than the previous one. More info in the documentation. * - * https://docs.spatie.be/laravel-medialibrary/v10/advanced-usage/generating-responsive-images + * https://spatie.be/docs/laravel-medialibrary/v11/responsive-images/getting-started-with-responsive-images */ 'width_calculator' => Spatie\MediaLibrary\ResponsiveImages\WidthCalculator\FileSizeOptimizedWidthCalculator::class, @@ -309,7 +309,7 @@ If you are planning on working with image manipulations it's recommended to conf ### Setting up optimization tools -Media library will use these tools to [optimize converted images](https://docs.spatie.be/laravel-medialibrary/v10/converting-images/optimizing-converted-images) if they are present on your system: +Media library will use these tools to [optimize converted images](https://spatie.be/docs/laravel-medialibrary/v11/converting-images/optimizing-converted-images) if they are present on your system: - [JpegOptim](http://freecode.com/projects/jpegoptim) - [Optipng](http://optipng.sourceforge.net/) @@ -345,8 +345,8 @@ brew install libavif ## Installing Media Library Pro -[Media Library Pro](http://medialibrary.pro) is an optional add-on package that offers Blade, Vue, and React components to upload files to your application. It [integrates](https://spatie.be/docs/laravel-medialibrary/v10/handling-uploads-with-media-library-pro/introduction) beautifully with the laravel-medialibrary. +[Media Library Pro](http://medialibrary.pro) is an optional add-on package that offers Blade, Vue, and React components to upload files to your application. It [integrates](https://spatie.be/docs/laravel-medialibrary/v11/handling-uploads-with-media-library-pro/introduction) beautifully with the laravel-medialibrary. You can buy a license for Media Library Pro on [the product page](https://spatie.be/products/media-library-pro) at spatie.be. -To install Media Library Pro, you should follow [these instructions](https://spatie.be/docs/laravel-medialibrary/v10/handling-uploads-with-media-library-pro/installation). +To install Media Library Pro, you should follow [these instructions](https://spatie.be/docs/laravel-medialibrary/v11/handling-uploads-with-media-library-pro/installation). From c8629f47a67e05dc2fab0208744db18c36a6e074 Mon Sep 17 00:00:00 2001 From: Dardan <46499848+dardanmulaj@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:40:09 +0100 Subject: [PATCH 02/31] Update introduction.md --- docs/introduction.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/introduction.md b/docs/introduction.md index 848f01551..8958b1f92 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -25,9 +25,9 @@ $yourModel->addMedia($smallFile)->toMediaCollection('downloads', 'local'); $yourModel->addMedia($bigFile)->toMediaCollection('downloads', 's3'); ``` -The storage of the files is handled by [Laravel's Filesystem](https://laravel.com/docs/9.x/filesystem), so you can plug in any compatible filesystem. +The storage of the files is handled by [Laravel's Filesystem](https://laravel.com/docs/10.x/filesystem), so you can plug in any compatible filesystem. -The package can also generate derived images such as thumbnails for images, videos and PDFs. Once you've [set up your model](/laravel-medialibrary/v10/basic-usage/preparing-your-model), they're easily accessible: +The package can also generate derived images such as thumbnails for images, videos and PDFs. Once you've [set up your model](https://spatie.be/docs/laravel-medialibrary/v11/basic-usage/preparing-your-model), they're easily accessible: ```php $yourModel->getMedia('images')->first()->getUrl('thumb'); @@ -37,7 +37,7 @@ $yourModel->getMedia('images')->first()->getUrl('thumb'); We've recorded [a video course](https://spatie.be/courses/discovering-laravel-media-library) on how to use this package. It's the best way to get started using media library -[![video course](/docs/laravel-medialibrary/v10/images/video-course.jpg)](https://spatie.be/courses/discovering-laravel-media-library/introducing-laravel-media-library) +[![video course](https://spatie.be/docs/laravel-medialibrary/v11/images/video-course.jpg)](https://spatie.be/courses/discovering-laravel-media-library/introducing-laravel-media-library) ## We have badges! From 97ea0a87052ae56aede2e2d986535e5443ad2534 Mon Sep 17 00:00:00 2001 From: Dardan <46499848+dardanmulaj@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:43:38 +0100 Subject: [PATCH 03/31] Update defining-conversions.md --- docs/api/defining-conversions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/defining-conversions.md b/docs/api/defining-conversions.md index ef4f92a27..1e0092f2f 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](/laravel-medialibrary/v11/converting-images/defining-conversions/) for more details. ## General methods From da3c32406414d7d58b8048831815cce851cc5f28 Mon Sep 17 00:00:00 2001 From: Dardan <46499848+dardanmulaj@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:44:25 +0100 Subject: [PATCH 04/31] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 477ccb35e7fd9525e161a80ae066c27fa4c015d5 Mon Sep 17 00:00:00 2001 From: Dardan <46499848+dardanmulaj@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:45:59 +0100 Subject: [PATCH 05/31] Update demo.md --- docs/responsive-images/demo.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/responsive-images/demo.md b/docs/responsive-images/demo.md index 59369bc86..eb0580a49 100644 --- a/docs/responsive-images/demo.md +++ b/docs/responsive-images/demo.md @@ -19,7 +19,7 @@ weight: 5

- The example above demonstrates the responsive images technique used in the Laravel MediaLibrary. + The example above demonstrates the responsive images technique used in the Laravel MediaLibrary.

Try this: