Fix payment form validation, styling and blog header visibility

This commit is contained in:
Muhammet Güler
2026-02-13 12:45:17 +03:00
parent bda19b4b0f
commit 0fa8e4e435
12 changed files with 638 additions and 15 deletions
+70
View File
@@ -0,0 +1,70 @@
<?php
declare(strict_types=1);
namespace App\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use App\Models\ProductCategory;
use Illuminate\Auth\Access\HandlesAuthorization;
class ProductCategoryPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:ProductCategory');
}
public function view(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('View:ProductCategory');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:ProductCategory');
}
public function update(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('Update:ProductCategory');
}
public function delete(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('Delete:ProductCategory');
}
public function restore(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('Restore:ProductCategory');
}
public function forceDelete(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('ForceDelete:ProductCategory');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:ProductCategory');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:ProductCategory');
}
public function replicate(AuthUser $authUser, ProductCategory $productCategory): bool
{
return $authUser->can('Replicate:ProductCategory');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:ProductCategory');
}
}