Fix named view data passing.
This commit is contained in:
@@ -261,7 +261,7 @@ class View {
|
|||||||
{
|
{
|
||||||
if (strpos($method, 'of_') === 0)
|
if (strpos($method, 'of_') === 0)
|
||||||
{
|
{
|
||||||
return static::of(substr($method, 3), $parameters);
|
return static::of(substr($method, 3), Arr::get($parameters, 0, array()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user