You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a Laravel 5.3 project where the laravel stapler package has been integrated with my model. For testing purposes i've made some database seeds that create some dummy records.
While attaching files to these records, Stapler deletes the original file on disk?
For example:
In case this is still useful to somebody:
When you create the file by path input, Stapler moves the file to the storage. Not sure if that's a feature or a bug, but it does feel inconsistent with e.g. upload from an url.
The workaround would be to just create a temp copy of the file you're uploading.
I'm working on a Laravel 5.3 project where the laravel stapler package has been integrated with my model. For testing purposes i've made some database seeds that create some dummy records.
While attaching files to these records, Stapler deletes the original file on disk?
For example:
After running, the file located at
$filePath
is deleted from disk. This is not what I expected, how should I stop Stapler from deleting my files?The text was updated successfully, but these errors were encountered: