Support the ongoing development of Laravel.io →
popolla

popolla

Joined 3 Feb 2014

Statistics

Threads 3
Replies 67
Solutions 14
Articles 0

Model attribute accessor not working with object_get helper function

The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...

0 Likes
3 Replies
Solved
posted 11 years ago

Thread malformed HTML

Don't know if it's been already reported, but it seems a few threads are not shown correctly due to...

0 Likes
2 Replies

Eloquent mass assignment security policy

The fill method of Illuminate\Database\Eloquent\Model is used for mass assignment, and it is called...

0 Likes
14 Replies
Solved
replied 11 years ago

How do you save image to database and display it on website?

mabasic said: popolla said: @mabasic: maybe your image is more than 64kB? If so, try with MEDIUMBL...

0 Likes
replied 11 years ago

How do you save image to database and display it on website?

@mabasic: maybe your image is more than 64kB? If so, try with MEDIUMBLOB.

0 Likes
replied 11 years ago

How do you save image to database and display it on website?

Try storing directly as binary (e.g. jpg) then retrieving with a route/controller. A very basic exam...

0 Likes
replied 11 years ago

How do you save image to database and display it on website?

Please elaborate "no luck". Are you using MySQL? If so, are you using BLOB or CLOB (TEXT)?...

0 Likes
replied 11 years ago

How do you save image to database and display it on website?

@mabasic: I think something like this should work: $user->image = $big_image->encode('jpg', 80...

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.