This is my code
$admin = Admin::find(25); $admin->picture = $destination; $admin->save();
but when I execute it, the
picturefield is keep
destination is a string to the location of the image.
I already tried
->update() but also nothing becomes saved.
could you help me please
picture column in my database is
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
$admin = Admin::where('id', '=', 25); $admin->picture = $destination; $admin->save();
You didn’t provide much code but if it’s a function
Laravel is UTF8 by default but just to make sure, check the file
/etc/mysql/my.cnf collation-server = utf8_unicode_ci init-connect='SET NAMES utf8' character-set-server = utf8
Finally I found the problem, three days working to this silly mistake
ID column in my database should have been