Skip to content

Commit

Permalink
Updated readme & changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jun 2, 2015
1 parent b8a1825 commit 69dab3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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.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.

##1.5.3
- Bugfix: Removed unnecessary static methods from `MediaLibraryModelInterface`

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ The method returns an array with `Media`-objects that are in the collection for
You can retrieve the url to the file associated with `Media`-object with:

```php
$publicURL = $mediaItems[0]->getURL('original');
$publicURL = $mediaItems[0]->getURL('detail');
```

*`getURL()` also accepts a second parameter to retrieve the url for a certain profile.*

You can remove something from the library by passing the a media id to the remove method of the facade:

```php
Expand Down

0 comments on commit 69dab3d

Please sign in to comment.