src/app/Logic/Config.php
public function set(string $category_key, string $config_key, string $value)
    {
        $config = ConfigCategory::where('key', $category_key)
            ->first()
            ->configs()
            ->where('key', $config_key)
            ->first();
        $config->value = $value;
        return $config->save();
    }
public function set(string $category_key, string $config_key, string $value)
    {
        $config = ConfigCategory::where('key', $category_key)
            ->first()
            ->configs()
            ->where('key', $config_key)
            ->first();
        $config->value = $value;
        return $config->save();
    }
public function set ( string $ category_key , string $ config_key , string $ value ) { $ config = ConfigCategory :: where ( 'key' , $ category_key ) -> first ( ) -> configs ( ) -> where ( 'key' , $ config_key ) -> first ( ) ; $ config -> value = $ value ; return $ config -> save ( ) ; }
Function for set configuration value.

@param string $category_key
@param string $config_key
@param string $value
@return void
Function for set configuration value .