Skip to content

Commit f0e9eb6

Browse files
authored
chore: use $ability variable
1 parent e3bd6e1 commit f0e9eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Html/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ public function addScript(string $view): static
265265
return $this;
266266
}
267267

268-
public function addScriptIfCan(string $permission, string $view): static
268+
public function addScriptIfCan(string $ability, string $view): static
269269
{
270-
if (Gate::allows($permission)) {
270+
if (Gate::allows($ability)) {
271271
$this->addScript($view);
272272
}
273273

0 commit comments

Comments
 (0)