Skip to content

Commit 3b01294

Browse files
hpaclebyajra
andauthored
fix: Follow laravel convention for variable name
Co-authored-by: Arjay Angeles <[email protected]>
1 parent e3d7bd7 commit 3b01294

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 addScriptIfCannot(string $permission, string $view): static
268+
public function addScriptIfCannot(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)