Skip to content

Commit

Permalink
Upgrading spatie/image-library
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Oct 6, 2020
1 parent b963d46 commit 3271480
Show file tree
Hide file tree
Showing 6 changed files with 1,144 additions and 799 deletions.
2 changes: 1 addition & 1 deletion app/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Models;

use Spatie\MediaLibrary\Models\Media as BaseMedia;
use Spatie\MediaLibrary\MediaCollections\Models\Media as BaseMedia;

class Media extends BaseMedia
{
Expand Down
8 changes: 4 additions & 4 deletions app/Models/MediaLibrary.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\MediaLibrary\HasMedia\HasMedia;
use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
use Spatie\MediaLibrary\Models\Media;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use Spatie\MediaLibrary\MediaCollections\Models\Media;

class MediaLibrary extends Model implements HasMedia
{
use HasMediaTrait;
use InteractsWithMedia;

public function registerMediaConversions(Media $media = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"predis/predis": "1.1.1",
"pusher/pusher-php-server": "4.1.4",
"spatie/laravel-backup": "6.10.0",
"spatie/laravel-medialibrary": "7.19.3"
"spatie/laravel-medialibrary": "8.10.1"
},
"require-dev": {
"beyondcode/laravel-dump-server": "1.4.0",
Expand Down
Loading

0 comments on commit 3271480

Please sign in to comment.