Skip to content

Commit 4b60db4

Browse files
committed
update readme
1 parent b2cdeb3 commit 4b60db4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,19 @@ it will
4848
- upload the new file into the storage
4949
magically :)
5050

51+
5152
Generate file url:
5253
```html
5354
<img src="{{ $user->urlOf('avater')">
5455
```
5556

56-
Delete a file:
57+
Delete a model / file:
5758
```php
58-
$user->deleteWith('avater');
59+
// delete only file
60+
$user->deleteFile('avater');
61+
62+
// or delete model and file
63+
$user->deleteWithFile('avater');
5964
````
6065
it will delete the model with the model related file also :).
6166

@@ -70,7 +75,7 @@ Multiple file upload:
7075

7176
Tip: if the file not exist on this dir or missing somehow then the noimage will show there.
7277
```html
73-
<img src="{{ $user->urlOf('avater') ?? asset('assets/images/no-image-placeholder.png') }}">
78+
<img src="{{ $user->urlOf('avater') }}">
7479
```
7580

7681
Awesome right?

0 commit comments

Comments
 (0)