hasRole(['admin', 'winemaker']); return true; } /** * Determine whether the user can update the wine production record. */ public function update(User $user, WineProduction $wineProduction): bool { // TODO: Implement role-based authorization // Only administrators and winemakers should be able to update wine production records // Example: return $user->hasRole(['admin', 'winemaker']); return true; } /** * Determine whether the user can delete the wine production record. */ public function delete(User $user, WineProduction $wineProduction): bool { // TODO: Implement role-based authorization // Only administrators should be able to delete wine production records // Example: return $user->hasRole('admin'); return true; } /** * Determine whether the user can restore the wine production record. */ public function restore(User $user, WineProduction $wineProduction): bool { // TODO: Implement role-based authorization // Only administrators should be able to restore wine production records // Example: return $user->hasRole('admin'); return true; } /** * Determine whether the user can permanently delete the wine production record. */ public function forceDelete(User $user, WineProduction $wineProduction): bool { // TODO: Implement role-based authorization // Only administrators should be able to force delete wine production records // Example: return $user->hasRole('admin'); return true; } }