Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni authored May 25, 2022
1 parent 8da82c2 commit 462452c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,23 @@ $files = [

// An array of URLs
$files = [
'/path/to/file.jpg',
'/path/to/file_2.jpg',
'/path/to/file_3.jpg',
'https://site.com/path/to/file.jpg',
'https://site.com/path/to/file_2.jpg',
'https://site.com/path/to/file_3.jpg',
]

// An array of associative arrays with a 'url' key
// An array of associative arrays containing a 'url' key-value pair
$files = [
[
'url' => '/path/to/file.jpg',
'url' => 'https://site.com/path/to/file.jpg',
],
[
'url' => '/path/to/file_2.jpg',
'url' => 'https://site.com/path/to/file_2.jpg',
],
[
'url' => '/path/to/file_3.jpg',
'url' => 'https://site.com/path/to/file_3.jpg',
],
]
```

>Note: Make sure the URLs are absolute. Any other values will be removed.

0 comments on commit 462452c

Please sign in to comment.