This commit is contained in:
salam committed 2025-11-14 12:37:33 +01:00
1 parent 4b79874100
commit 54c1d2a6e0
4 files changed
+33 -126

No files matched your search

-70
View File
@@ -1,70 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use App\Models\Plan;
use Illuminate\Auth\Access\HandlesAuthorization;
class PlanPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:Plan');
}
public function view(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('View:Plan');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:Plan');
}
public function update(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('Update:Plan');
}
public function delete(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('Delete:Plan');
}
public function restore(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('Restore:Plan');
}
public function forceDelete(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('ForceDelete:Plan');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:Plan');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:Plan');
}
public function replicate(AuthUser $authUser, Plan $plan): bool
{
return $authUser->can('Replicate:Plan');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:Plan');
}
}
+21 -21
View File
@@ -531,7 +531,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::ujfob9beT20afLlN', '_route' => 'generated::R3YkBwuW7aVNzbmp',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -551,7 +551,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::xo3kJGB2Kai4wz1c', '_route' => 'generated::9vTQB9Dr2x5AVop3',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -609,7 +609,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::SWoGYxdjyUAOcgVh', '_route' => 'generated::7no4DfhajbhKKQ1o',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -629,7 +629,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::amiq2DoYewzdm8Y8', '_route' => 'generated::pssqJEsBh3DapwwN',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -649,7 +649,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::S1KEgmy9kS1sVnDX', '_route' => 'generated::iVNIcI5H9GDV38dH',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -669,7 +669,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::pJN3i9aU8lWn299F', '_route' => 'generated::uzfNEwgAKQiljDoH',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -689,7 +689,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::8pEsEgvP206TQHbt', '_route' => 'generated::WDGUMb6jDwtqaL8t',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -2717,7 +2717,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::ujfob9beT20afLlN' => 'generated::R3YkBwuW7aVNzbmp' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2729,7 +2729,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'as' => 'generated::ujfob9beT20afLlN', 'as' => 'generated::R3YkBwuW7aVNzbmp',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2745,7 +2745,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::xo3kJGB2Kai4wz1c' => 'generated::9vTQB9Dr2x5AVop3' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2757,7 +2757,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'as' => 'generated::xo3kJGB2Kai4wz1c', 'as' => 'generated::9vTQB9Dr2x5AVop3',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2859,7 +2859,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::SWoGYxdjyUAOcgVh' => 'generated::7no4DfhajbhKKQ1o' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2888,7 +2888,7 @@ app('router')->setCompiledRoutes(
\'exception\' => $exception, \'exception\' => $exception,
]), status: $exception ? 500 : 200); ]), status: $exception ? 500 : 200);
}";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f460000000000000000";}}', }";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f460000000000000000";}}',
'as' => 'generated::SWoGYxdjyUAOcgVh', 'as' => 'generated::7no4DfhajbhKKQ1o',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2904,7 +2904,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::amiq2DoYewzdm8Y8' => 'generated::pssqJEsBh3DapwwN' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2926,7 +2926,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::amiq2DoYewzdm8Y8', 'as' => 'generated::pssqJEsBh3DapwwN',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2942,7 +2942,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::S1KEgmy9kS1sVnDX' => 'generated::iVNIcI5H9GDV38dH' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2964,7 +2964,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::S1KEgmy9kS1sVnDX', 'as' => 'generated::iVNIcI5H9GDV38dH',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2980,7 +2980,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::pJN3i9aU8lWn299F' => 'generated::uzfNEwgAKQiljDoH' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -3002,7 +3002,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::pJN3i9aU8lWn299F', 'as' => 'generated::uzfNEwgAKQiljDoH',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3018,7 +3018,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::8pEsEgvP206TQHbt' => 'generated::WDGUMb6jDwtqaL8t' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -3040,7 +3040,7 @@ app('router')->setCompiledRoutes(
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::8pEsEgvP206TQHbt', 'as' => 'generated::WDGUMb6jDwtqaL8t',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
Generated
+12 -12
View File
@@ -2645,16 +2645,16 @@
}, },
{ {
"name": "kirschbaum-development/eloquent-power-joins", "name": "kirschbaum-development/eloquent-power-joins",
"version": "4.2.9", "version": "4.2.10",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git",
"reference": "32ec75ffee5f8f66e2c95e4030fa0b2454e51048" "reference": "ccda351a75701f5b0a6f94586d9a40f1114302b4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/32ec75ffee5f8f66e2c95e4030fa0b2454e51048", "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/ccda351a75701f5b0a6f94586d9a40f1114302b4",
"reference": "32ec75ffee5f8f66e2c95e4030fa0b2454e51048", "reference": "ccda351a75701f5b0a6f94586d9a40f1114302b4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2702,9 +2702,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues",
"source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/4.2.9" "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/4.2.10"
}, },
"time": "2025-10-25T11:39:00+00:00" "time": "2025-11-13T14:57:49+00:00"
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
@@ -12728,16 +12728,16 @@
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
"version": "1.2.3", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/theseer/tokenizer.git", "url": "https://github.com/theseer/tokenizer.git",
"reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "url": "https://api.github.com/repos/theseer/tokenizer/zipball/d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -12766,7 +12766,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": { "support": {
"issues": "https://github.com/theseer/tokenizer/issues", "issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/1.2.3" "source": "https://github.com/theseer/tokenizer/tree/1.3.0"
}, },
"funding": [ "funding": [
{ {
@@ -12774,7 +12774,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-03-03T12:36:25+00:00" "time": "2025-11-13T13:44:09+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
-23
View File
@@ -1,23 +0,0 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PlansSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$sql = "INSERT INTO `plans` (`id`, `name`, `payment`, `description`, `icon`, `preis`, `limit_user`, `limit_gutachter`, `created_at`, `updated_at`)
VALUES
('1', 'Basic', 'Einzeln', 'Zahlung erfolgt per Gutachten.', 'phosphor-airplane-thin', '75', '1', '1', NULL, '2025-09-30 15:53:33'),
('2', 'Standard', 'Monatlich', 'Zahlung erfolgt monatlich, ohne Begrenzung der Gutachten.', 'phosphor-airplane-takeoff-thin', '150', '3', '3', NULL, '2025-09-30 15:53:42'),
('3', 'Premium', 'Jährlich', 'Zahlung erfolgt jährlich, ohne Begrenzung für Gutachten, Gutachter oder Auftraggeber.', 'phosphor-airplane-in-flight-thin', '1750', '10', '5', NULL, '2025-09-30 15:53:47');
";
DB::unprepared($sql);
}
}