z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.15k stars 2.82k forks source link

How to move image file in saved callback function #5786

Open hieulvt opened 1 year ago

hieulvt commented 1 year ago

Description:

I want to upload the image file with the path that including the model->id (E.g: /images/book/{bookID}), only have this id only after the form is saved. So I need to move the image file in the saved callback function of form. How can I do it?

Please help on this. Thanks.