hasPermissionTo('product-mapping.viewAny'); } /** * Determine whether the user can view the model. */ public function view(User $user, ProductMapping $model): bool { return $user->hasPermissionTo('product-mapping.view'); } /** * Determine whether the user can create models. */ public function create(User $user): bool { return $user->hasPermissionTo('product-mapping.create'); } /** * Determine whether the user can update the model. */ public function update(User $user, ProductMapping $model): bool { return $user->hasPermissionTo('product-mapping.update'); } /** * Determine whether the user can delete the model. */ public function delete(User $user, ProductMapping $model): bool { return $user->hasPermissionTo('product-mapping.delete'); } }