diff --git a/src/Controllers/HessamAdminController.php b/src/Controllers/HessamAdminController.php index 4cc352c..b3e3bca 100755 --- a/src/Controllers/HessamAdminController.php +++ b/src/Controllers/HessamAdminController.php @@ -352,8 +352,8 @@ public function update_post(UpdateHessamCMSPostRequest $request, $blogPostId) public function remove_photo($postSlug, $lang_id) { $post = HessamPostTranslation::where([ - "slug", '=', $postSlug, - 'lang_id', '=', $lang_id + ["slug", '=', $postSlug], + ['lang_id', '=', $lang_id] ])->firstOrFail(); $path = public_path('/' . config("hessamcms.blog_upload_dir"));