We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c15ae commit 36a935eCopy full SHA for 36a935e
README.md
@@ -60,6 +60,14 @@ $attachment = $user->attach('local/path/to/file.txt');
60
61
// Bind an uploaded file
62
$attachment = $user->attach(\Request::file('uploaded_file'));
63
+
64
+// Bind an uploaded file with options
65
+$attachment = $user->attach(\Request::file('uploaded_file'), [
66
+ 'disk' => 's3',
67
+ 'title' => \Request::input('attachment_title'),
68
+ 'description' => \Request::input('attachment_description'),
69
+ 'key' => \Request::input('attachment_key'),
70
+]);
71
```
72
73
## Retrieve model's attachments
0 commit comments