I want the user to be able to upload images via a form. According to the database the images have been uploaded as it states 'BLOB-20B' however when I click on it from the database, it does not open and when I try to display it via HTML, it only shows the name of the file. Does anybody know what I am doing wrong?
Controller in store:
$example = new Example();
$example->sketches = request('sketches');
$example->notes = request('notes');
$example->photographs = request('photographs');
$example->save();
Never ever ever store blobs in the database. Images, movies and other binary files should always be stored on disc. The only thing that should be stored in the database is the path to the images.