Remove priority due to changes from Laravel 5.4

This commit is contained in:
Pig Fang 2019-09-15 09:32:07 +08:00
parent 93a7bae30d
commit 792062451a

View File

@ -86,7 +86,7 @@ class Hook
}, $priority);
}
public static function addStyleFileToPage($urls, $pages = ['*'], $priority = 1): void
public static function addStyleFileToPage($urls, $pages = ['*']): void
{
Event::listen(Events\RenderingHeader::class, function ($event) use ($urls, $pages) {
foreach ($pages as $pattern) {
@ -100,10 +100,10 @@ class Hook
return;
}
}, $priority);
});
}
public static function addScriptFileToPage($urls, $pages = ['*'], $priority = 1): void
public static function addScriptFileToPage($urls, $pages = ['*']): void
{
Event::listen(Events\RenderingFooter::class, function ($event) use ($urls, $pages) {
foreach ($pages as $pattern) {
@ -117,7 +117,7 @@ class Hook
return;
}
}, $priority);
});
}
public static function addUserBadge(string $text, $color = 'primary'): void