Skip to content

Commit

Permalink
Merge pull request #103 from rapidz/feature/fix-nova-4
Browse files Browse the repository at this point in the history
Add forceFill to fix Nova 4
  • Loading branch information
voidgraphics authored Jul 25, 2023
2 parents 68619d0 + aebb35c commit 01ffd3d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Pages/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ function(Carbon $new, Carbon $current = null) {
});
}

/**
* Force Fill the layout with an array of attributes.
*
* @param array $attributes
* @return $this
*/
public function forceFill(array $attributes)
{
foreach ($attributes as $key => $value) {
$attribute = \Str::replace('->', '.', $key);
\Arr::set($this->attributes, $attribute, $value);
}

return $this;
}

/**
* Create a new loaded template instance
*
Expand Down

0 comments on commit 01ffd3d

Please sign in to comment.