Skip to content

Commit e069983

Browse files
committed
fix misspelled method name
Misspelled the word "delete": was "deletet" before
1 parent 768c6b9 commit e069983

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ article, but one of its role has, the user will also have that permission.
471471
### Per-model permission deletion
472472

473473
To delete all per-model permissions associated with a model,
474-
you can use the `deletetThisModelPermissions` method that comes
474+
you can use the `deleteThisModelPermissions` method that comes
475475
with the `Permissionable` trait.
476476

477477
```php
478478
<?php
479-
$model->deletetThisModelPermissions();
479+
$model->deleteThisModelPermissions();
480480
```
481481

482482
If you want that behavior to be triggered automatically before deleting an
@@ -646,15 +646,15 @@ permissions:
646646

647647
```php
648648
<?php
649-
Article::deletetGenericModelPermissions();
649+
Article::deleteGenericModelPermissions();
650650
```
651651

652652
To delete all model permissions, both generic model permissions and per-model
653653
permissions (be careful with this one, since it will delete all of them):
654654

655655
```php
656656
<?php
657-
Article::deletetAllModelPermissions();
657+
Article::deleteAllModelPermissions();
658658
```
659659

660660
### Resource Policy

src/Traits/Permissionable.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @return void
1616
*/
17-
public function deletetThisModelPermissions()
17+
public function deleteThisModelPermissions()
1818
{
1919
self::Permission()::where([
2020
'model' => $this::class,
@@ -27,7 +27,7 @@ public function deletetThisModelPermissions()
2727
*
2828
* @return void
2929
*/
30-
public static function deletetAllModelPermissions()
30+
public static function deleteAllModelPermissions()
3131
{
3232
self::Permission()::where('model', self::class)->delete();
3333
}
@@ -37,7 +37,7 @@ public static function deletetAllModelPermissions()
3737
*
3838
* @return void
3939
*/
40-
public static function deletetGenericModelPermissions()
40+
public static function deleteGenericModelPermissions()
4141
{
4242
self::Permission()::where([
4343
'model' => self::class,

0 commit comments

Comments
 (0)