I'm trying to create an array of functions. Although, I'm getting parse error
and nothing more when executing this code
protected $filter_functions = [
"price" => function(&$query, $lower, $higher) {
$query->where("price", ">=", $lower)->where("price", "<=", $higher);
}
];
I can't see any syntax error but maybe there is. The PHP version is currently 5.6.28 and should be compatible with anonymous functions.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lqK6z0
via IFTTT
Aucun commentaire:
Enregistrer un commentaire