I have a problem with saving one field, how can I debug?
class AdvertController extends Controller
public function store(Requests\StoreAdvertPostRequest $request)
public function edit($id)
$articlePicture = Advert::find($id)->photos->file_name;
$path = 'uploads/photos/' . $articlePicture;
'name' => 'photo',
'label' => 'Profile Image',
'type' => 'image',
'value' => $path,
'crop' => true,
'aspect_ratio' => 0.75,
The "store" method is only called when creating an entry, not editing. Perhaps you were trying to edit? Then the dd() should be placed inside the update() method. But that's in the CrudController, not the regular one. I have no idea what your regular controller does.
Usually when the value does not get stored in the database it's because you forgot to place the column in the $fillable attribute on the model.
Also, because this is an upload field, you should create a mutator that also places the file on disk. The "image" field documentation has it.