Skip to content

Commit

Permalink
rename boot method
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 3, 2015
1 parent 69dab3d commit 97f5f5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All Notable changes to `laravel-medialibrary` will be documented in this file

##1.5.5
- Bugfix: Renamed the boot method of MedialibraryModeltrait so it plays nice with the boot method of
other traits and the base model.

##1.5.4
- Feature: The `profile` parameter in `Media::getUrl()` and `MediaLibraryModelTrait::getURL()` is now optional. On null, it retrieves the original file's url.
- Bugfix: `Media::getOriginalURL()` now returns the correct url.
Expand Down
4 changes: 1 addition & 3 deletions src/MediaLibraryModel/MediaLibraryModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

trait MediaLibraryModelTrait
{
public static function boot()
public static function bootMediaLibraryModelTrait()
{
parent::boot();

self::deleting(function (MediaLibraryModelInterface $subject) {

foreach ($subject->media()->get() as $media) {
Expand Down

0 comments on commit 97f5f5e

Please sign in to comment.