You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a little bit problem. I hope someone can help me.
I Upload images in Orchid Panel, and attach them a Model, it is working, but when I try to update images an exist Model like deleting, the image still is on storage, and after refresh it is appeared again. No error message in Console (like javascript), or from laravel.
After upload I try to delete it in dropzone with X,
After delete Post in attachments table is not deleted
I worked from original Docs ( BTW. in list sort doesnt work too, icons appeared, clickable, but after click doesnt happened anything.)
Delete function
public function remove(Post $post)
{
$post->attachment->each->delete();
$post->delete();
//Storage::delete($post->attachment);
Alert::info('You have successfully deleted the post.');
return redirect()->route('platform.post.list');
}
CreateOrUpdate
public function createOrUpdate(Post $post, Request $request)
{
$request->validate([
'post.title' => 'required',
]);
$post->fill($request->get('post'))->save();
$post->attachment()->syncWithoutDetaching(
$request->input('post.attachment', [])
);
Alert::info('You have successfully created an post.');
return redirect()->route('platform.post.list');
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I have a little bit problem. I hope someone can help me.

I Upload images in Orchid Panel, and attach them a Model, it is working, but when I try to update images an exist Model like deleting, the image still is on storage, and after refresh it is appeared again. No error message in Console (like javascript), or from laravel.
After upload I try to delete it in dropzone with X,
After delete Post in attachments table is not deleted
I worked from original Docs ( BTW. in list sort doesnt work too, icons appeared, clickable, but after click doesnt happened anything.)
Delete function
CreateOrUpdate
Upload form
Beta Was this translation helpful? Give feedback.
All reactions