this is inside of my Controller:
$a="A";
$b="B";
$res = MyModel::getBook($a,$b);
Inside of "MyModel":
public function scopegetBook($a,$b)
{
var_dump($a,$b);
return null;
}
This only outputs "A" and an object with generic db data, "B" is missing.
Can't scope-methods handle more than 1 parameter? Or do i have to put $a and $b inside an array?
Thank you!