Laravel-admin: [Form] uploaded image doesn't appear

Created on 22 May 2018  路  3Comments  路  Source: z-song/laravel-admin

  • Laravel Version: 5.5
  • PHP Version: 7.0
  • Laravel-admin: 1.5

Description:

the uploaded image doesn't appear after uploading(but it is saved) when the model's method is camelCase.
I've tried both
$form->image('profile_image.path', 'profile image')->uniqueName();
and
$form->image('profileImage.path', 'profile image')->uniqueName();

wontfix

Most helpful comment

the best way is to change the APP_URL in your _.env_ file from http://localhost to http://localhost:8000 and you are done 馃憤

All 3 comments

PS.
if I use this one:
$form->image('profile_image.path', 'profile image')->uniqueName();
It will cannot be saved but it will appear.
and if I use this one instead:
$form->image('profileImage.path', 'profile image')->uniqueName();
It will can be saved but won't appear.

the best way is to change the APP_URL in your _.env_ file from http://localhost to http://localhost:8000 and you are done 馃憤

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdhraesaemer picture cdhraesaemer  路  3Comments

chenyongmin picture chenyongmin  路  3Comments

greentornado picture greentornado  路  3Comments

MarKco picture MarKco  路  3Comments

amun1303 picture amun1303  路  3Comments