File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,19 @@ it will
4848 - upload the new file into the storage
4949 magically :)
5050
51+
5152Generate 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````
6065it will delete the model with the model related file also :).
6166
@@ -70,7 +75,7 @@ Multiple file upload:
7075
7176Tip: 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
7681Awesome right?
You can’t perform that action at this time.
0 commit comments