model()->id.".jpg"); The result is just a file named" /> model()->id.".jpg"); The result is just a file named" /> model()->id.".jpg"); The result is just a file named"/>

Setting the name of an uploaded image in Laravel-admin by using the model

552 Views Asked by At

I tried the following code:

$form->image('image', 'Image')->name($form->model()->title."_".$form->model()->id.".jpg");

The result is just a file named _.jpg, and I don't see what I am doing wrong.

Of course, I want to keep even the file default extension if possible, but how you can see, I failed at it.

0

There are 0 best solutions below