src/Generic/Templater.php
/**
     * Firstly we check if $template is null and return $value if so,
     * secondly we check if value of $template is a method that we can call and call it,
     * thirdly we just apply "replacing" template that we use in LIKE string.
     *
     * @param $template
     * @param $value
     *
     * @return mixed
     */
Firstly we check if $template is null and return $value if so,
secondly we check if value of $template is a method that we can call and call it,
thirdly we just apply "replacing" template that we use in LIKE string.

@param $template
@param $value

@return mixed
Firstly we check if $template is null and return $value if so secondly we check if value of $template is a method that we can call and call it thirdly we just apply " replacing " template that we use in LIKE string . @param $template @param $value @return mixed
public function apply($template, $value)
    {
        if (is_null($template)) {
            return $value;
        } elseif (method_exists($this, Str::camel($template))) {
            return $this->{Str::camel($template)}($value);
        } else {
            return str_replace('?', $value, $template);
        }
    }
public function apply ( $ template , $ value ) { if ( is_null ( $ template ) ) { return $ value ; } elseif ( method_exists ( $ this , Str :: camel ( $ template ) ) ) { return $ this -> { Str :: camel ( $ template ) } ( $ value ) ; } else { return str_replace ( '?' , $ value , $ template ) ; } }
Firstly we check if $template is null and return $value if so,
 secondly we check if value of $template is a method that we can call and call it,
 thirdly we just apply "replacing" template that we use in LIKE string.
Firstly we check if $template is null and return $value if so secondly we check if value of $template is a method that we can call and call it thirdly we just apply " replacing " template that we use in LIKE string .