Backpack 5 for Laravel saves files into temporary folder of the webserver #539
-
Hello guys. How are you doing? I have problem with backpack, and I posted it on StackOverflow but it seems no one can help me. You are my only hope. https://stackoverflow.com/questions/76532449/backpack-5-for-laravel-saves-files-into-temporary-folder-of-the-webserver |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A mutator should have attribute name in the method name. In my case I called the mutator as setImageAttribute and my attribute name was main_picture_path so in order for everything to work flawlessly the mutator should be name as follows: setMainPicturePathAttribute. Nothing was said about it in the documentation and hours of hard work helped me to find out the solution. |
Beta Was this translation helpful? Give feedback.
A mutator should have attribute name in the method name. In my case I called the mutator as setImageAttribute and my attribute name was main_picture_path so in order for everything to work flawlessly the mutator should be name as follows: setMainPicturePathAttribute. Nothing was said about it in the documentation and hours of hard work helped me to find out the solution.