public function deleteImage()
    {
        if ($filename = Setting::where('key_name', 'image')->value('value')) {
            try {
                Croppa::delete('storage/settings/'.$filename);
            } catch (Exception $e) {
                Log::info($e->getMessage());
            }
        }
        Setting::where('key_name', 'image')->delete();
        $this->repository->forgetCache();
    }
public function deleteImage()
    {
        if ($filename = Setting::where('key_name', 'image')->value('value')) {
            try {
                Croppa::delete('storage/settings/'.$filename);
            } catch (Exception $e) {
                Log::info($e->getMessage());
            }
        }
        Setting::where('key_name', 'image')->delete();
        $this->repository->forgetCache();
    }
public function deleteImage ( ) { if ( $ filename = Setting :: where ( 'key_name' , 'image' ) -> value ( 'value' ) ) { try { Croppa :: delete ( 'storage/settings/' . $ filename ) ; } catch ( Exception $ e ) { Log :: info ( $ e -> getMessage ( ) ) ; } } Setting :: where ( 'key_name' , 'image' ) -> delete ( ) ; $ this -> repository -> forgetCache ( ) ; }
Delete image.

@return null
Delete image .