Skip to content

Commit

Permalink
fix: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed May 13, 2023
1 parent b1fb33f commit 4ff8c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

if (class_exists('\Leaf\App')) {
\Leaf\View::attach(\Leaf\BareUI::class, 'template');
app()->attach(function () {
\Leaf\View::attach(\Leaf\BareUI::class, 'template');
});
}

0 comments on commit 4ff8c96

Please sign in to comment.