diff --git a/app/Http/Controllers/Bo/StickyController.php b/app/Http/Controllers/Bo/StickyController.php index 79c08da..cbef777 100644 --- a/app/Http/Controllers/Bo/StickyController.php +++ b/app/Http/Controllers/Bo/StickyController.php @@ -105,7 +105,7 @@ class StickyController extends Controller * Update the specified resource in storage. * * @param \App\Http\Requests\Bo\Stickies\UpdateStickyRequest $request - * @param \App\Models\Sticky $sticky + * @param \App\Models\Sticky $sticky * @return \Illuminate\Http\RedirectResponse */ public function update(UpdateStickyRequest $request, Sticky $sticky): \Illuminate\Http\RedirectResponse diff --git a/app/Models/Sticky.php b/app/Models/Sticky.php index b603cb2..b5d76d5 100644 --- a/app/Models/Sticky.php +++ b/app/Models/Sticky.php @@ -51,14 +51,14 @@ class Sticky extends Model */ protected static function booted(): void { - static::creating(function (self $model) { + static::creating(function () { // * Prevent user elevation privileges throw_if( auth('backend')->user() and auth('backend')->user()->role->value() < RoleEnum::conceptor->value(), AuthorizationException::class ); }); - static::deleting(function (self $model) { + static::deleting(function () { // // * Prevent user elevation privileges throw_if( auth('backend')->user() and auth('backend')->user()->role->value() < RoleEnum::conceptor->value(), diff --git a/resources/views/bo/layouts/nav-list.blade.php b/resources/views/bo/layouts/nav-list.blade.php index e07a190..aba1375 100644 --- a/resources/views/bo/layouts/nav-list.blade.php +++ b/resources/views/bo/layouts/nav-list.blade.php @@ -365,8 +365,8 @@ @endcan