From 7bc684aad7f9219f78d327fb1f8d68bc7e201590 Mon Sep 17 00:00:00 2001 From: Aluisio Pires Date: Fri, 22 Nov 2024 05:29:32 -0300 Subject: [PATCH] [11.x] Fix: Ensure generated policies return boolean values --- .../Foundation/Console/stubs/policy.stub | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Illuminate/Foundation/Console/stubs/policy.stub b/src/Illuminate/Foundation/Console/stubs/policy.stub index ffe9ce14a9dc..8e188453dcfb 100644 --- a/src/Illuminate/Foundation/Console/stubs/policy.stub +++ b/src/Illuminate/Foundation/Console/stubs/policy.stub @@ -13,7 +13,7 @@ class {{ class }} */ public function viewAny({{ user }} $user): bool { - // + return true; } /** @@ -21,7 +21,7 @@ class {{ class }} */ public function view({{ user }} $user, {{ model }} ${{ modelVariable }}): bool { - // + return true; } /** @@ -29,7 +29,7 @@ class {{ class }} */ public function create({{ user }} $user): bool { - // + return true; } /** @@ -37,7 +37,7 @@ class {{ class }} */ public function update({{ user }} $user, {{ model }} ${{ modelVariable }}): bool { - // + return true; } /** @@ -45,7 +45,7 @@ class {{ class }} */ public function delete({{ user }} $user, {{ model }} ${{ modelVariable }}): bool { - // + return true; } /** @@ -53,7 +53,7 @@ class {{ class }} */ public function restore({{ user }} $user, {{ model }} ${{ modelVariable }}): bool { - // + return true; } /** @@ -61,6 +61,6 @@ class {{ class }} */ public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}): bool { - // + return true; } }