commit 747b6b4004acf95b382daa66b98ea28b6cd89ae2 Author: trogers1884 Date: Sun Feb 16 08:56:21 2025 -0600 Initial commit of base infrastructure diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8f0de65 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ea0665b --- /dev/null +++ b/.env.example @@ -0,0 +1,59 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailpit +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_APP_NAME="${APP_NAME}" +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcb21d3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7fe978f --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +/.phpunit.cache +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode diff --git a/README.md b/README.md new file mode 100644 index 0000000..c3839d3 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# New Infrastructure + +A Laravel 11 based infrastructure providing component-based architecture for building web applications with: +- Admin interface for project management +- API infrastructure for mobile applications +- Data extraction components for third-party integration + +## Status +This project is under active development and is not yet ready for production use. + +## Requirements +- PHP 8.3+ +- Laravel 11 +- PostgreSQL 17 + +## Disclaimer +This software is provided as-is, without any guarantees or warranties. Use at your own risk. While issues and pull requests are welcome, there is no guarantee of timely responses or updates. + +## License +MIT diff --git a/app/Components/Admin/Helpers/AuthorizationHelper.php b/app/Components/Admin/Helpers/AuthorizationHelper.php new file mode 100644 index 0000000..0972ea1 --- /dev/null +++ b/app/Components/Admin/Helpers/AuthorizationHelper.php @@ -0,0 +1,47 @@ + User::count(), + 'roles_count' => Role::count(), + 'user_roles_count' => DB::table('auth.user_roles')->count(), + 'resources_count' => ResourceType::count(), + 'resource_mappings_count' => ResourceTypeMapping::count(), + ]; + + // Database Statistics + $dbStats = DB::select(" + SELECT + pg_size_pretty(pg_database_size(current_database())) as db_size, + (SELECT count(*) FROM information_schema.schemata + WHERE schema_name NOT IN ('information_schema', 'pg_catalog')) as schema_count, + (SELECT count(*) FROM information_schema.tables + WHERE table_schema NOT IN ('information_schema', 'pg_catalog') + AND table_type = 'BASE TABLE') as table_count, + (SELECT count(*) FROM information_schema.views + WHERE table_schema NOT IN ('information_schema', 'pg_catalog') + AND table_name NOT LIKE 'pg_%') as view_count, + (SELECT count(*) FROM pg_matviews) as materialized_view_count, + (SELECT count(*) FROM pg_indexes + WHERE schemaname NOT IN ('information_schema', 'pg_catalog')) as index_count + "); + + return view('admin::admin.dashboard', compact('systemStats', 'dbStats')); + } + + public function getDatabaseIO(): JsonResponse + { + // Get current stats + $stats = DB::select(" + SELECT + blks_read, + blks_hit, + tup_returned, + tup_fetched, + tup_inserted, + tup_updated, + tup_deleted, + EXTRACT(EPOCH FROM now()) as timestamp, + xact_commit, + xact_rollback + FROM pg_stat_database + WHERE datname = current_database() + "); + + // Store the stats in cache with timestamp + $previousStats = cache()->get('database_stats'); + $currentStats = $stats[0]; + cache()->put('database_stats', $currentStats, now()->addMinutes(5)); + + // If we have previous stats, calculate the differences + if ($previousStats) { + $timeDiff = $currentStats->timestamp - $previousStats->timestamp; + + $response = [ + // Calculate rates per second + 'blks_read' => ($currentStats->blks_read - $previousStats->blks_read) / $timeDiff, + 'blks_hit' => ($currentStats->blks_hit - $previousStats->blks_hit) / $timeDiff, + 'tup_returned' => ($currentStats->tup_returned - $previousStats->tup_returned) / $timeDiff, + 'tup_inserted' => ($currentStats->tup_inserted - $previousStats->tup_inserted) / $timeDiff, + 'tup_updated' => ($currentStats->tup_updated - $previousStats->tup_updated) / $timeDiff, + 'tup_deleted' => ($currentStats->tup_deleted - $previousStats->tup_deleted) / $timeDiff, + 'xact_commit' => ($currentStats->xact_commit - $previousStats->xact_commit) / $timeDiff, + 'xact_rollback' => ($currentStats->xact_rollback - $previousStats->xact_rollback) / $timeDiff, + ]; + } else { + // For the first call, return zeros + $response = [ + 'blks_read' => 0, + 'blks_hit' => 0, + 'tup_returned' => 0, + 'tup_inserted' => 0, + 'tup_updated' => 0, + 'tup_deleted' => 0, + 'xact_commit' => 0, + 'xact_rollback' => 0, + ]; + } + + return response()->json($response); + } +} diff --git a/app/Components/Admin/Http/Controllers/MenuTypesController.php b/app/Components/Admin/Http/Controllers/MenuTypesController.php new file mode 100644 index 0000000..6296831 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/MenuTypesController.php @@ -0,0 +1,153 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view menu types'); + } + + return DB::transaction(function () use ($request) { + $menuTypes = MenuType::query() + ->search($request->input('search')) + ->sort( + $request->input('sort', 'name'), + $request->input('direction', 'asc') + ) + ->withCount('navigationItems') + ->paginate(10) + ->withQueryString(); + + return view('admin::menu-types.index', [ + 'menuTypes' => $menuTypes, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create menu types'); + } + + return view('admin::menu-types.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(MenuTypeRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create menu types'); + } + + return DB::transaction(function () use ($request) { + $menuType = MenuType::create($request->validated()); + + Log::info('Menu type created successfully', [ + 'id' => $menuType->id, + 'name' => $menuType->name, + 'created_by' => auth()->id() + ]); + + return redirect() + ->route('admin.menu-types.index') + ->with('success', 'Menu type created successfully'); + }); + } + + public function edit(MenuType $menuType): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit menu types'); + } + + return view('admin::menu-types.edit', [ + 'menuType' => $menuType, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(MenuTypeRequest $request, MenuType $menuType): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit menu types'); + } + + return DB::transaction(function () use ($request, $menuType) { + $menuType->update($request->validated()); + + Log::info('Menu type updated successfully', [ + 'id' => $menuType->id, + 'name' => $menuType->name, + 'updated_by' => auth()->id() + ]); + + return redirect() + ->route('admin.menu-types.index') + ->with('success', 'Menu type updated successfully'); + }); + } + + public function destroy(MenuType $menuType): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete menu types'); + } + + if ($menuType->navigationItems()->exists()) { + return back()->withErrors([ + 'error' => 'Cannot delete menu type: It has associated navigation items' + ]); + } + + return DB::transaction(function () use ($menuType) { + $menuTypeDetails = [ + 'id' => $menuType->id, + 'name' => $menuType->name + ]; + + $menuType->delete(); + + Log::info('Menu type deleted successfully', [ + ...$menuTypeDetails, + 'deleted_by' => auth()->id() + ]); + + return redirect() + ->route('admin.menu-types.index') + ->with('success', 'Menu type deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/MigrationsController.php b/app/Components/Admin/Http/Controllers/MigrationsController.php new file mode 100644 index 0000000..7698054 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/MigrationsController.php @@ -0,0 +1,74 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view migrations'); + } + + return DB::transaction(function () use ($request) { + $migrations = Migration::query() + ->when($request->input('search'), function ($query, $search) { + return $query->search($search); + }) + ->orderBy($request->input('sort', 'id'), $request->input('direction', 'desc')) + ->paginate(10) + ->withQueryString(); + + return view('admin::migrations.index', [ + 'migrations' => $migrations, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function show(int $id): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view migration details'); + } + + return DB::transaction(function () use ($id) { + $migration = Migration::findOrFail($id); + + Log::info('Migration details accessed', [ + 'migration_id' => $id, + 'user_id' => auth()->id() + ]); + + return view('admin::migrations.show', [ + 'migration' => $migration, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/NavigationItemsController.php b/app/Components/Admin/Http/Controllers/NavigationItemsController.php new file mode 100644 index 0000000..656a197 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/NavigationItemsController.php @@ -0,0 +1,171 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view navigation items'); + } + + return DB::transaction(function () use ($request) { + $navItems = NavigationItem::query() + ->with(['menuType', 'parent']) + ->search($request->input('search')) + ->byMenuType($request->input('menu_type_id')) + ->ordered() + ->paginate(10) + ->withQueryString(); + + $menuTypes = MenuType::orderBy('name')->get(); + $activeNavItems = NavigationItem::active()->ordered()->get(); + + return view('admin::navigation-items.index', [ + 'navItems' => $navItems, + 'menuTypes' => $menuTypes, + 'activeNavItems' => $activeNavItems, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create navigation items'); + } + + return DB::transaction(function () { + return view('admin::navigation-items.create', [ + 'menuTypes' => MenuType::orderBy('name')->get(), + 'parentItems' => NavigationItem::whereNull('parent_id') + ->orderBy('name') + ->get(), + 'activeNavItems' => NavigationItem::active()->ordered()->get(), + 'availableRoutes' => RouteHelper::getAdminNamedRoutes(), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function store(NavigationItemRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create navigation items'); + } + + return DB::transaction(function () use ($request) { + $navigationItem = NavigationItem::create($request->validated()); + + Log::info('Navigation item created successfully', [ + 'id' => $navigationItem->id, + 'name' => $navigationItem->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.navigation-items.index') + ->with('success', 'Navigation item created successfully'); + }); + } + + public function edit(NavigationItem $navigationItem): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit navigation items'); + } + + return DB::transaction(function () use ($navigationItem) { + return view('admin::navigation-items.edit', [ + 'navigationItem' => $navigationItem, + 'menuTypes' => MenuType::orderBy('name')->get(), + 'parentItems' => NavigationItem::where('id', '!=', $navigationItem->id) + ->whereNull('parent_id') + ->orderBy('name') + ->get(), + 'activeNavItems' => NavigationItem::active()->ordered()->get(), + 'availableRoutes' => RouteHelper::getAdminNamedRoutes(), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function update(NavigationItemRequest $request, NavigationItem $navigationItem): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit navigation items'); + } + + return DB::transaction(function () use ($request, $navigationItem) { + $navigationItem->update($request->validated()); + + Log::info('Navigation item updated successfully', [ + 'id' => $navigationItem->id, + 'name' => $navigationItem->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.navigation-items.index') + ->with('success', 'Navigation item updated successfully'); + }); + } + + public function destroy(NavigationItem $navigationItem): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete navigation items'); + } + + if ($navigationItem->children()->exists()) { + return back()->withErrors([ + 'error' => 'Cannot delete navigation item with child items' + ]); + } + + return DB::transaction(function () use ($navigationItem) { + $navigationItem->delete(); + + Log::info('Navigation item deleted successfully', [ + 'id' => $navigationItem->id, + 'name' => $navigationItem->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.navigation-items.index') + ->with('success', 'Navigation item deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/PermissionsController.php b/app/Components/Admin/Http/Controllers/PermissionsController.php new file mode 100644 index 0000000..db0fb28 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/PermissionsController.php @@ -0,0 +1,147 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view permissions'); + } + + return DB::transaction(function () use ($request) { + $permissions = Permission::query() + ->search($request->input('search')) + ->orderBy($request->input('sort', 'name')) + ->paginate(10) + ->withQueryString(); + + return view('admin::permissions.index', [ + 'permissions' => $permissions, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create permissions'); + } + + return view('admin::permissions.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(PermissionRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create permissions'); + } + + return DB::transaction(function () use ($request) { + $permission = Permission::create($request->validated()); + + Log::info('Permission created successfully', [ + 'id' => $permission->id, + 'name' => $permission->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.permissions.index') + ->with('success', 'Permission created successfully'); + }); + } + + public function edit(Permission $permission): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit this permission'); + } + + return view('admin::permissions.edit', [ + 'permission' => $permission, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(PermissionRequest $request, Permission $permission): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit this permission'); + } + + return DB::transaction(function () use ($request, $permission) { + $permission->update($request->validated()); + + Log::info('Permission updated successfully', [ + 'id' => $permission->id, + 'name' => $permission->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.permissions.index') + ->with('success', 'Permission updated successfully'); + }); + } + + public function destroy(Permission $permission): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete permissions'); + } + + if ($permission->roles()->exists()) { + return back()->withErrors([ + 'error' => 'Cannot delete permission that is assigned to roles' + ]); + } + + return DB::transaction(function () use ($permission) { + $pageInfo = [ + 'id' => $permission->id, + 'name' => $permission->name, + 'user_id' => auth()->id() + ]; + + $permission->delete(); + + Log::info('Permission deleted successfully', $pageInfo); + + return redirect() + ->route('admin.permissions.index') + ->with('success', 'Permission deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/ResourceAssociationsController.php b/app/Components/Admin/Http/Controllers/ResourceAssociationsController.php new file mode 100644 index 0000000..a49cf3c --- /dev/null +++ b/app/Components/Admin/Http/Controllers/ResourceAssociationsController.php @@ -0,0 +1,252 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view resource associations'); + } + + return DB::transaction(function () use ($request) { + $resourceAssociations = ResourceAssociation::with(['user', 'resourceType', 'role']) + ->search($request->input('search')) + ->sort( + $request->input('sort', 'created_at'), + $request->input('direction', 'desc') + ) + ->paginate(10) + ->withQueryString(); + + $resourceMappings = DB::table('auth.tbl_resource_type_mappings') + ->pluck('resource_value_column', 'resource_type_id'); + + foreach ($resourceAssociations as $association) { + $this->loadResourceValue($association, $resourceMappings); + } + + return view('admin::resource-associations.index', [ + 'resourceAssociations' => $resourceAssociations, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource associations'); + } + + return DB::transaction(function () { + return view('admin::resource-associations.create', [ + 'users' => User::where('active', true)->orderBy('name')->get(), + 'resourceTypes' => ResourceType::orderBy('name')->get(), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function store(ResourceAssociationRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource associations'); + } + + return DB::transaction(function () use ($request) { + $resourceAssociation = ResourceAssociation::create($request->validated()); + + Log::info('Resource association created successfully', [ + 'id' => $resourceAssociation->id, + 'user_id' => $resourceAssociation->user_id, + 'resource_type_id' => $resourceAssociation->resource_type_id, + 'role_id' => $resourceAssociation->role_id + ]); + + return redirect() + ->route('admin.resource-associations.index') + ->with('success', 'Resource association created successfully'); + }); + } + + public function edit(ResourceAssociation $resourceAssociation): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource associations'); + } + + return DB::transaction(function () use ($resourceAssociation) { + $resources = []; + if ($resourceAssociation->resource_type_id) { + $resources = DB::select( + "SELECT * FROM auth.get_resource_query(?)", + [$resourceAssociation->resource_type_id] + ); + } + + return view('admin::resource-associations.edit', [ + 'resourceAssociation' => $resourceAssociation, + 'users' => User::where('active', true)->orderBy('name')->get(), + 'resourceTypes' => ResourceType::orderBy('name')->get(), + 'roles' => Role::orderBy('name')->get(), + 'resources' => $resources, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function update(ResourceAssociationRequest $request, ResourceAssociation $resourceAssociation): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource associations'); + } + + return DB::transaction(function () use ($request, $resourceAssociation) { + $resourceAssociation->update($request->validated()); + + Log::info('Resource association updated successfully', [ + 'id' => $resourceAssociation->id, + 'user_id' => $resourceAssociation->user_id, + 'resource_type_id' => $resourceAssociation->resource_type_id, + 'role_id' => $resourceAssociation->role_id + ]); + + return redirect() + ->route('admin.resource-associations.index') + ->with('success', 'Resource association updated successfully'); + }); + } + + public function destroy(ResourceAssociation $resourceAssociation): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete resource associations'); + } + + return DB::transaction(function () use ($resourceAssociation) { + $resourceAssociation->delete(); + + Log::info('Resource association deleted successfully', [ + 'id' => $resourceAssociation->id, + 'user_id' => $resourceAssociation->user_id, + 'resource_type_id' => $resourceAssociation->resource_type_id, + 'role_id' => $resourceAssociation->role_id + ]); + + return redirect() + ->route('admin.resource-associations.index') + ->with('success', 'Resource association deleted successfully'); + }); + } + + public function getRoles(Request $request): JsonResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + return response()->json(['error' => 'Unauthorized'], 403); + } + + $userId = $request->get('user_id'); + if (!$userId) { + return response()->json(['error' => 'User ID is required'], 400); + } + + return DB::transaction(function () use ($userId) { + $roles = DB::table('auth.tbl_user_roles as ur') + ->join('auth.tbl_roles as r', 'ur.role_id', '=', 'r.id') + ->where('ur.user_id', $userId) + ->whereNull('ur.deleted_at') + ->select('r.id', 'r.name', 'r.description') + ->orderBy('r.name') + ->get(); + + return response()->json($roles); + }); + } + + public function getResources(Request $request): JsonResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + return response()->json(['error' => 'Unauthorized'], 403); + } + + $resourceTypeId = $request->get('resource_type_id'); + if (!$resourceTypeId) { + return response()->json(['error' => 'Resource type ID is required'], 400); + } + + return DB::transaction(function () use ($resourceTypeId) { + $mapping = DB::table('auth.tbl_resource_type_mappings') + ->where('resource_type_id', $resourceTypeId) + ->first(); + + if (!$mapping) { + return response()->json(['error' => 'No mapping found for this resource type'], 404); + } + + $query = "SELECT id, {$mapping->resource_value_column} as value + FROM {$mapping->table_schema}.{$mapping->table_name} + WHERE deleted_at IS NULL + ORDER BY {$mapping->resource_value_column}"; + + return response()->json(DB::select($query)); + }); + } + + private function loadResourceValue(ResourceAssociation $association, $resourceMappings): void + { + if ($association->resource_id && isset($resourceMappings[$association->resource_type_id])) { + $mapping = DB::table('auth.tbl_resource_type_mappings') + ->where('resource_type_id', $association->resource_type_id) + ->first(); + + if ($mapping) { + $query = "SELECT {$mapping->resource_value_column} as value + FROM {$mapping->table_schema}.{$mapping->table_name} + WHERE id = ?"; + + $result = DB::selectOne($query, [$association->resource_id]); + $association->resource_value = $result + ? "{$mapping->resource_value_column}: {$result->value}" + : null; + } + } + + if (!isset($association->resource_value)) { + $mapping = $resourceMappings[$association->resource_type_id] ?? null; + $association->resource_value = $mapping ? "{$mapping}: all" : 'all'; + } + } +} diff --git a/app/Components/Admin/Http/Controllers/ResourceTypeMappingsController.php b/app/Components/Admin/Http/Controllers/ResourceTypeMappingsController.php new file mode 100644 index 0000000..6265ec5 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/ResourceTypeMappingsController.php @@ -0,0 +1,234 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view resource type mappings'); + } + + return DB::transaction(function () use ($request) { + $resourceTypeMappings = ResourceTypeMapping::query() + ->with('resourceType') + ->search($request->input('search')) + ->bySchema($request->input('schema')) + ->ordered($request->input('sort'), $request->input('direction')) + ->paginate(10) + ->withQueryString(); + + return view('admin::resource-type-mappings.index', [ + 'resource_type_mappings' => $resourceTypeMappings, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource type mappings'); + } + + return DB::transaction(function () { + $resourceTypes = ResourceType::whereNotIn('id', function($query) { + $query->select('resource_type_id') + ->from('auth.tbl_resource_type_mappings') + ->whereNull('deleted_at'); + })->orderBy('name')->get(); + + return view('admin::resource-type-mappings.create', [ + 'resourceTypes' => $resourceTypes, + 'schemas' => $this->getAvailableSchemas(), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function store(ResourceTypeMappingRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource type mappings'); + } + + return DB::transaction(function () use ($request) { + $resourceTypeMapping = ResourceTypeMapping::create($request->validated()); + + Log::info('Resource type mapping created successfully', [ + 'resource_type_id' => $resourceTypeMapping->resource_type_id, + 'table' => $resourceTypeMapping->getFullTableName(), + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.resource-type-mappings.index') + ->with('success', 'Resource type mapping created successfully'); + }); + } + + public function edit(ResourceTypeMapping $resourceTypeMapping): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource type mappings'); + } + + return DB::transaction(function () use ($resourceTypeMapping) { + $resourceTypes = ResourceType::whereNotIn('id', function($query) use ($resourceTypeMapping) { + $query->select('resource_type_id') + ->from('auth.tbl_resource_type_mappings') + ->where('resource_type_id', '!=', $resourceTypeMapping->resource_type_id) + ->whereNull('deleted_at'); + })->orderBy('name')->get(); + + return view('admin::resource-type-mappings.edit', [ + 'resource_type_mapping' => $resourceTypeMapping, + 'resourceTypes' => $resourceTypes, + 'schemas' => $this->getAvailableSchemas(), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function update(ResourceTypeMappingRequest $request, ResourceTypeMapping $resourceTypeMapping): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource type mappings'); + } + + return DB::transaction(function () use ($request, $resourceTypeMapping) { + $resourceTypeMapping->update($request->validated()); + + Log::info('Resource type mapping updated successfully', [ + 'resource_type_id' => $resourceTypeMapping->resource_type_id, + 'table' => $resourceTypeMapping->getFullTableName(), + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.resource-type-mappings.index') + ->with('success', 'Resource type mapping updated successfully'); + }); + } + + public function destroy(ResourceTypeMapping $resourceTypeMapping): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete resource type mappings'); + } + + return DB::transaction(function () use ($resourceTypeMapping) { + $resourceTypeMapping->delete(); + + Log::info('Resource type mapping deleted successfully', [ + 'resource_type_id' => $resourceTypeMapping->resource_type_id, + 'table' => $resourceTypeMapping->getFullTableName(), + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.resource-type-mappings.index') + ->with('success', 'Resource type mapping deleted successfully'); + }); + } + + public function getTables(Request $request): JsonResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + return response()->json(['error' => 'Unauthorized access'], 403); + } + + $schema = $request->get('schema'); + if (!$schema) { + return response()->json(['error' => 'Schema is required'], 400); + } + + return DB::transaction(function () use ($schema) { + $tables = $this->getTablesForSchema($schema); + + return response()->json(array_map(function($table) { + return ['table_name' => $table->table_name]; + }, $tables)); + }); + } + + public function getColumns(Request $request): JsonResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + return response()->json(['error' => 'Unauthorized access'], 403); + } + + $schema = $request->get('schema'); + $table = $request->get('table'); + + if (!$schema || !$table) { + return response()->json(['error' => 'Schema and table are required'], 400); + } + + return DB::transaction(function () use ($schema, $table) { + return response()->json($this->getColumnsForTable($schema, $table)); + }); + } + + private function getAvailableSchemas(): array + { + return DB::select(" + SELECT schema_name + FROM information_schema.schemata + WHERE schema_name NOT IN ('information_schema', 'pg_catalog') + ORDER BY schema_name + "); + } + + private function getTablesForSchema(string $schema): array + { + return DB::select(" + SELECT table_name + FROM information_schema.tables + WHERE table_schema = ? + AND table_type = 'BASE TABLE' + ORDER BY table_name + ", [$schema]); + } + + private function getColumnsForTable(string $schema, string $table): array + { + return DB::select(" + SELECT column_name + FROM information_schema.columns + WHERE table_schema = ? + AND table_name = ? + ORDER BY ordinal_position + ", [$schema, $table]); + } +} diff --git a/app/Components/Admin/Http/Controllers/ResourceTypesController.php b/app/Components/Admin/Http/Controllers/ResourceTypesController.php new file mode 100644 index 0000000..4b97cc9 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/ResourceTypesController.php @@ -0,0 +1,141 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view resource types'); + } + + return DB::transaction(function () use ($request) { + $resourceTypes = ResourceType::query() + ->search($request->input('search')) + ->orderBy($request->input('sort', 'name')) + ->paginate(10) + ->withQueryString(); + + return view('admin::resource-types.index', [ + 'resourceTypes' => $resourceTypes, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource types'); + } + + return view('admin::resource-types.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(ResourceTypeRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create resource types'); + } + + return DB::transaction(function () use ($request) { + $resourceType = ResourceType::create($request->validated()); + + Log::info('Resource type created successfully', [ + 'id' => $resourceType->id, + 'name' => $resourceType->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.resource-types.index') + ->with('success', 'Resource type created successfully'); + }); + } + + public function edit(ResourceType $resourceType): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource types'); + } + + return view('admin::resource-types.edit', [ + 'resourceType' => $resourceType, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(ResourceTypeRequest $request, ResourceType $resourceType): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit resource types'); + } + + return DB::transaction(function () use ($request, $resourceType) { + $resourceType->update($request->validated()); + + Log::info('Resource type updated successfully', [ + 'id' => $resourceType->id, + 'name' => $resourceType->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.resource-types.index') + ->with('success', 'Resource type updated successfully'); + }); + } + + public function destroy(ResourceType $resourceType): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete resource types'); + } + + return DB::transaction(function () use ($resourceType) { + $pageInfo = [ + 'id' => $resourceType->id, + 'name' => $resourceType->name, + 'user_id' => auth()->id() + ]; + + $resourceType->delete(); + + Log::info('Resource type deleted successfully', $pageInfo); + + return redirect() + ->route('admin.resource-types.index') + ->with('success', 'Resource type deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/RolesController.php b/app/Components/Admin/Http/Controllers/RolesController.php new file mode 100644 index 0000000..09e9a1e --- /dev/null +++ b/app/Components/Admin/Http/Controllers/RolesController.php @@ -0,0 +1,215 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view roles'); + } + + return DB::transaction(function () use ($request) { + $roles = Role::query() + ->search($request->input('search')) + ->orderBy($request->input('sort', 'name')) + ->paginate(10) + ->withQueryString(); + + return view('admin::roles.index', [ + 'roles' => $roles, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create roles'); + } + + return view('admin::roles.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(RoleRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create roles'); + } + + return DB::transaction(function () use ($request) { + $role = Role::create($request->validated()); + + Log::info('Role created successfully', [ + 'id' => $role->id, + 'name' => $role->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.roles.index') + ->with('success', 'Role created successfully'); + }); + } + + public function edit(Role $role): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit roles'); + } + + return view('admin::roles.edit', [ + 'role' => $role, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(RoleRequest $request, Role $role): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit roles'); + } + + return DB::transaction(function () use ($request, $role) { + $role->update($request->validated()); + + Log::info('Role updated successfully', [ + 'id' => $role->id, + 'name' => $role->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.roles.index') + ->with('success', 'Role updated successfully'); + }); + } + + public function managePermissions(Role $role): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to manage role permissions'); + } + + return DB::transaction(function () use ($role) { + $permissions = Permission::orderBy('name')->get(); + $rolePermissionIds = $role->permissions->pluck('id')->toArray(); + + $criticalPermissions = $permissions->mapWithKeys(function ($permission) { + return [$permission->id => AuthorizationHelper::isSystemCriticalPermission($permission->name)]; + })->toArray(); + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isSystemRole = AuthorizationHelper::isSystemRole($role->name); + + if ($isSystemRole) { + Log::info('System role permissions being accessed', [ + 'role_id' => $role->id, + 'role_name' => $role->name, + 'user_id' => auth()->id(), + 'user_email' => auth()->user()->email + ]); + } + + return view('admin::roles.manage-permissions', [ + 'role' => $role, + 'permissions' => $permissions, + 'rolePermissionIds' => $rolePermissionIds, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue, + 'criticalPermissions' => $criticalPermissions, + 'isSuperAdmin' => $isSuperAdmin, + 'isSystemRole' => $isSystemRole + ]); + }); + } + + public function updatePermissions(Request $request, Role $role): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to update role permissions'); + } + + $validated = $request->validate([ + 'permissions' => 'array|nullable', + 'permissions.*' => [Rule::exists('pgsql.auth.permissions', 'id')] + ]); + + return DB::transaction(function () use ($validated, $role) { + $permissions = $validated['permissions'] ?? []; + $role->permissions()->sync($permissions); + + Log::info('Role permissions updated successfully', [ + 'role_id' => $role->id, + 'permissions' => $permissions, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.roles.index') + ->with('success', 'Permissions updated successfully'); + }); + } + + public function destroy(Role $role): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete roles'); + } + + if ($role->users()->exists()) { + return back()->withErrors([ + 'error' => 'Cannot delete role that is assigned to users' + ]); + } + + return DB::transaction(function () use ($role) { + $role->permissions()->detach(); + $role->delete(); + + Log::info('Role deleted successfully', [ + 'id' => $role->id, + 'name' => $role->name, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.roles.index') + ->with('success', 'Role deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/UserRolesController.php b/app/Components/Admin/Http/Controllers/UserRolesController.php new file mode 100644 index 0000000..8a84247 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/UserRolesController.php @@ -0,0 +1,155 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view user roles'); + } + + return DB::transaction(function () use ($request) { + $userRoles = UserRole::with(['user', 'role']) + ->search($request->input('search')) + ->sort( + $request->input('sort', 'created_at'), + $request->input('direction', 'desc') + ) + ->paginate(10) + ->withQueryString(); + + return view('admin::user-roles.index', [ + 'userRoles' => $userRoles, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create user roles'); + } + + return DB::transaction(function () { + return view('admin::user-roles.create', [ + 'users' => User::orderBy('name')->get(['id', 'name']), + 'roles' => Role::orderBy('name')->get(['id', 'name']), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function store(UserRoleRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create user roles'); + } + + return DB::transaction(function () use ($request) { + $userRole = UserRole::create($request->validated()); + + Log::info('User role created successfully', [ + 'id' => $userRole->id, + 'user_id' => $userRole->user_id, + 'role_id' => $userRole->role_id, + 'created_by' => auth()->id() + ]); + + return redirect() + ->route('admin.user-roles.index') + ->with('success', 'User role assigned successfully'); + }); + } + + public function edit(UserRole $userRole): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit user roles'); + } + + return DB::transaction(function () use ($userRole) { + return view('admin::user-roles.edit', [ + 'userRole' => $userRole, + 'users' => User::orderBy('name')->get(['id', 'name']), + 'roles' => Role::orderBy('name')->get(['id', 'name']), + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function update(UserRoleRequest $request, UserRole $userRole): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit user roles'); + } + + return DB::transaction(function () use ($request, $userRole) { + $userRole->update($request->validated()); + + Log::info('User role updated successfully', [ + 'id' => $userRole->id, + 'user_id' => $userRole->user_id, + 'role_id' => $userRole->role_id, + 'updated_by' => auth()->id() + ]); + + return redirect() + ->route('admin.user-roles.index') + ->with('success', 'User role updated successfully'); + }); + } + + public function destroy(UserRole $userRole): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete user roles'); + } + + return DB::transaction(function () use ($userRole) { + $userRole->delete(); + + Log::info('User role deleted successfully', [ + 'id' => $userRole->id, + 'user_id' => $userRole->user_id, + 'role_id' => $userRole->role_id, + 'deleted_by' => auth()->id() + ]); + + return redirect() + ->route('admin.user-roles.index') + ->with('success', 'User role removed successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/UsersController.php b/app/Components/Admin/Http/Controllers/UsersController.php new file mode 100644 index 0000000..ba6c6d0 --- /dev/null +++ b/app/Components/Admin/Http/Controllers/UsersController.php @@ -0,0 +1,154 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view users'); + } + + return DB::transaction(function () use ($request) { + $query = User::query() + ->search($request->input('search')) + ->filterByStatus($request->input('status')) + ->orderBy($request->input('sort', 'name')); + + Log::info('User query:', [ + 'sql' => $query->toSql(), + 'bindings' => $query->getBindings() + ]); + + $users = $query->paginate(10)->withQueryString(); + + return view('admin::users.index', [ + 'users' => $users, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create users'); + } + + return view('admin::users.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(UserRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create users'); + } + + return DB::transaction(function () use ($request) { + $validated = $request->validated(); + $validated['password'] = Hash::make($validated['password']); + + $user = User::create($validated); + + Log::info('User created successfully', [ + 'id' => $user->id, + 'name' => $user->name + ]); + + return redirect() + ->route('admin.users.index') + ->with('success', 'User created successfully'); + }); + } + + public function edit(User $user): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit users'); + } + + return view('admin::users.edit', [ + 'user' => $user, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(UserRequest $request, User $user): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit users'); + } + + return DB::transaction(function () use ($request, $user) { + $validated = $request->validated(); + + if (isset($validated['password'])) { + $validated['password'] = Hash::make($validated['password']); + } else { + unset($validated['password']); + } + + $user->update($validated); + + Log::info('User updated successfully', [ + 'id' => $user->id, + 'name' => $user->name + ]); + + return redirect() + ->route('admin.users.index') + ->with('success', 'User updated successfully'); + }); + } + + public function destroy(User $user): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete users'); + } + + return DB::transaction(function () use ($user) { + $user->delete(); + + Log::info('User deleted successfully', [ + 'id' => $user->id, + 'name' => $user->name + ]); + + return redirect() + ->route('admin.users.index') + ->with('success', 'User deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Controllers/WebPagesController.php b/app/Components/Admin/Http/Controllers/WebPagesController.php new file mode 100644 index 0000000..780be5e --- /dev/null +++ b/app/Components/Admin/Http/Controllers/WebPagesController.php @@ -0,0 +1,141 @@ +resourceType = self::RESOURCE_TYPE; + $this->resourceValue = self::RESOURCE_VALUE; + } + + public function index(Request $request): View|RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'view')) { + abort(403, 'Unauthorized to view web pages'); + } + + return DB::transaction(function () use ($request) { + $webPages = WebPage::query() + ->search($request->input('search')) + ->orderBy($request->input('sort', 'url')) + ->paginate(10) + ->withQueryString(); + + return view('admin::web-pages.index', [ + 'webPages' => $webPages, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + }); + } + + public function create(): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create web pages'); + } + + return view('admin::web-pages.create', [ + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function store(WebPageRequest $request): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'create')) { + abort(403, 'Unauthorized to create web pages'); + } + + return DB::transaction(function () use ($request) { + $webPage = WebPage::create($request->validated()); + + Log::info('Web page created successfully', [ + 'id' => $webPage->id, + 'url' => $webPage->url, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.web-pages.index') + ->with('success', 'Web page created successfully'); + }); + } + + public function edit(WebPage $webPage): View + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit this web page'); + } + + return view('admin::web-pages.edit', [ + 'webPage' => $webPage, + 'thisResourceType' => $this->resourceType, + 'thisResourceValue' => $this->resourceValue + ]); + } + + public function update(WebPageRequest $request, WebPage $webPage): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'edit')) { + abort(403, 'Unauthorized to edit this web page'); + } + + return DB::transaction(function () use ($request, $webPage) { + $webPage->update($request->validated()); + + Log::info('Web page updated successfully', [ + 'id' => $webPage->id, + 'url' => $webPage->url, + 'user_id' => auth()->id() + ]); + + return redirect() + ->route('admin.web-pages.index') + ->with('success', 'Web page updated successfully'); + }); + } + + public function destroy(WebPage $webPage): RedirectResponse + { + if (!$this->checkResourcePermission($this->resourceType, $this->resourceValue, 'delete')) { + abort(403, 'Unauthorized to delete this web page'); + } + + return DB::transaction(function () use ($webPage) { + $pageInfo = [ + 'id' => $webPage->id, + 'url' => $webPage->url, + 'user_id' => auth()->id() + ]; + + $webPage->delete(); + + Log::info('Web page deleted successfully', $pageInfo); + + return redirect() + ->route('admin.web-pages.index') + ->with('success', 'Web page deleted successfully'); + }); + } +} diff --git a/app/Components/Admin/Http/Middleware/AdminAuthentication.php b/app/Components/Admin/Http/Middleware/AdminAuthentication.php new file mode 100644 index 0000000..4007ec8 --- /dev/null +++ b/app/Components/Admin/Http/Middleware/AdminAuthentication.php @@ -0,0 +1,14 @@ +route('autogroup')?->id; + $action = $autogroupId ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array|string> + */ + public function rules(): array + { + $autogroupId = $this->route('autogroup')?->id; + + return [ + 'name' => [ + 'required', + 'string', + 'max:255', + Rule::unique('pgsql.core.tbl_autogroups', 'name') + ->ignore($autogroupId, 'id') + ->whereNull('deleted_at') + ], + 'description' => [ + 'nullable', + 'string', + 'max:255' + ], + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages(): array + { + return [ + 'name.required' => 'The autogroup name is required.', + 'name.unique' => 'This autogroup name is already in use.', + 'name.max' => 'The autogroup name cannot exceed 255 characters.', + 'description.max' => 'The description cannot exceed 255 characters.', + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/MenuTypeRequest.php b/app/Components/Admin/Http/Requests/MenuTypeRequest.php new file mode 100644 index 0000000..6de0a6f --- /dev/null +++ b/app/Components/Admin/Http/Requests/MenuTypeRequest.php @@ -0,0 +1,61 @@ +route('menu_type')?->id; + $action = $menuTypeId ? 'edit' : 'create'; + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'name' => [ + 'required', + 'string', + 'max:100', + Rule::unique('pgsql.config.tbl_menu_types', 'name') + ->ignore($this->route('menu_type')), + 'regex:/^[\w\s-]+$/' + ], + 'description' => ['nullable', 'string', 'max:255'] + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages(): array + { + return [ + 'name.required' => 'A menu type name is required', + 'name.max' => 'The menu type name cannot be longer than 100 characters', + 'name.regex' => 'The name may only contain letters, numbers, spaces, hyphens, and underscores', + 'name.unique' => 'This menu type name is already in use', + 'description.max' => 'The description cannot be longer than 255 characters' + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/MigrationRequest.php b/app/Components/Admin/Http/Requests/MigrationRequest.php new file mode 100644 index 0000000..e6991fb --- /dev/null +++ b/app/Components/Admin/Http/Requests/MigrationRequest.php @@ -0,0 +1,92 @@ +checkResourcePermission($this->resourceType, $this->resourceValue, 'view'); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'sort' => ['sometimes', 'string', 'in:id,migration,batch'], + 'direction' => ['sometimes', 'string', 'in:asc,desc'], + 'search' => ['sometimes', 'nullable', 'string', 'max:255'], + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages(): array + { + return [ + 'sort.in' => 'The sort field must be either id, migration, or batch.', + 'direction.in' => 'The direction must be either ascending or descending.', + 'search.max' => 'The search term cannot exceed 255 characters.', + ]; + } + + /** + * Get custom attributes for validator errors. + * + * @return array + */ + public function attributes(): array + { + return [ + 'sort' => 'sort field', + 'direction' => 'sort direction', + 'search' => 'search term', + ]; + } + + /** + * Prepare the data for validation. + * + * @return void + */ + protected function prepareForValidation(): void + { + // Ensure sort and direction have default values if not provided + $this->merge([ + 'sort' => $this->input('sort', 'id'), + 'direction' => $this->input('direction', 'desc'), + ]); + } +} diff --git a/app/Components/Admin/Http/Requests/NavigationItemRequest.php b/app/Components/Admin/Http/Requests/NavigationItemRequest.php new file mode 100644 index 0000000..b8e46c5 --- /dev/null +++ b/app/Components/Admin/Http/Requests/NavigationItemRequest.php @@ -0,0 +1,110 @@ +route('navigation_item') !== null; + $action = $isEdit ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + /** + * Get the validation rules that apply to the request. + */ + public function rules(): array + { + return [ + 'menu_type_id' => [ + 'required', + Rule::exists('pgsql.config.tbl_menu_types', 'id') + ], + 'name' => [ + 'required', + 'string', + 'max:255' + ], + 'route' => [ + 'required', + 'string', + 'max:255' + ], + 'icon' => [ + 'nullable', + 'string', + 'max:100', + function ($attribute, $value, $fail) { + if (!empty($value) && !IconHelper::isValidIcon($value)) { + $fail('The selected icon is invalid.'); + } + } + ], + 'order_index' => [ + 'nullable', + 'integer', + 'min:0' + ], + 'parent_id' => [ + 'nullable', + Rule::exists('pgsql.config.tbl_navigation_items', 'id') + ->whereNull('deleted_at') + ->where(function ($query) { + $query->whereNull('parent_id') + ->when($this->route('navigation_item'), function ($query) { + $query->where('id', '!=', $this->route('navigation_item')->id); + }); + }) + ], + 'is_active' => [ + 'boolean' + ] + ]; + } + + /** + * Get custom messages for validator errors. + */ + public function messages(): array + { + return [ + 'menu_type_id.required' => 'The menu type is required.', + 'menu_type_id.exists' => 'The selected menu type is invalid.', + 'name.required' => 'The navigation item name is required.', + 'name.max' => 'The navigation item name cannot exceed 255 characters.', + 'route.required' => 'The route is required.', + 'route.max' => 'The route cannot exceed 255 characters.', + 'icon.max' => 'The icon cannot exceed 100 characters.', + 'order_index.integer' => 'The order index must be a number.', + 'order_index.min' => 'The order index must be 0 or greater.', + 'parent_id.exists' => 'The selected parent item is invalid.', + ]; + } + + /** + * Prepare the data for validation. + */ + protected function prepareForValidation(): void + { + $this->merge([ + 'is_active' => $this->boolean('is_active'), + 'order_index' => $this->input('order_index') ?? 0, + ]); + } +} diff --git a/app/Components/Admin/Http/Requests/PermissionRequest.php b/app/Components/Admin/Http/Requests/PermissionRequest.php new file mode 100644 index 0000000..f9c6b8a --- /dev/null +++ b/app/Components/Admin/Http/Requests/PermissionRequest.php @@ -0,0 +1,49 @@ +route('permission')); + + $permissionId = $this->route('permission')?->id; + $action = $permissionId ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + public function rules(): array + { + return [ + 'name' => [ + 'required', + 'string', + 'max:255', + Rule::unique('pgsql.auth.tbl_permissions', 'name') + ->ignore($this->route('permission')), + ], + 'description' => 'nullable|string|max:1000', + ]; + } + + public function messages(): array + { + return [ + 'name.required' => 'The permission name is required', + 'name.unique' => 'This permission name already exists', + 'name.max' => 'The permission name cannot exceed 255 characters', + 'description.max' => 'The description cannot exceed 1000 characters', + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/ResourceAssociationRequest.php b/app/Components/Admin/Http/Requests/ResourceAssociationRequest.php new file mode 100644 index 0000000..e8548e3 --- /dev/null +++ b/app/Components/Admin/Http/Requests/ResourceAssociationRequest.php @@ -0,0 +1,123 @@ +route('resource_association') !== null; + + // Determine the required permission based on the request type + $permission = $isEdit ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $permission); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array|string> + */ + public function rules(): array + { + return [ + 'user_id' => [ + 'required', + 'exists:users,id,active,true' + ], + 'resource_type_id' => [ + 'required', + 'exists:pgsql.auth.tbl_resource_types,id' + ], + 'role_id' => [ + 'required', + 'exists:pgsql.auth.tbl_roles,id', + Rule::unique('pgsql.auth.tbl_resource_associations') + ->where(function ($query) { + return $query->where('user_id', $this->user_id) + ->where('resource_type_id', $this->resource_type_id) + ->where('resource_id', $this->resource_id) + ->whereNull('deleted_at'); + }) + ->ignore($this->route('resource_association')) + ], + 'resource_id' => [ + 'nullable', + 'integer', + function ($attribute, $value, $fail) { + if ($value !== null) { + // Verify the resource exists in the mapped table + $mapping = \DB::table('auth.tbl_resource_type_mappings') + ->where('resource_type_id', $this->resource_type_id) + ->first(); + + if ($mapping) { + $exists = \DB::table("{$mapping->table_schema}.{$mapping->table_name}") + ->where('id', $value) + ->whereNull('deleted_at') + ->exists(); + + if (!$exists) { + $fail('The selected resource does not exist.'); + } + } else { + $fail('No mapping found for the selected resource type.'); + } + } + } + ], + 'description' => [ + 'nullable', + 'string', + 'max:255' + ] + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages(): array + { + return [ + 'user_id.required' => 'A user must be selected.', + 'user_id.exists' => 'The selected user must be active and valid.', + 'resource_type_id.required' => 'A resource type must be selected.', + 'resource_type_id.exists' => 'The selected resource type is invalid.', + 'role_id.required' => 'A role must be selected.', + 'role_id.exists' => 'The selected role is invalid.', + 'role_id.unique' => 'This user already has this role for this resource.', + 'resource_id.integer' => 'The resource ID must be a number.', + 'description.max' => 'The description cannot exceed 255 characters.' + ]; + } + + /** + * Prepare the data for validation. + */ + protected function prepareForValidation(): void + { + // If no resource_id is provided, set it to null explicitly + if ($this->input('resource_id') === '') { + $this->merge([ + 'resource_id' => null + ]); + } + } +} diff --git a/app/Components/Admin/Http/Requests/ResourceTypeMappingRequest.php b/app/Components/Admin/Http/Requests/ResourceTypeMappingRequest.php new file mode 100644 index 0000000..1947603 --- /dev/null +++ b/app/Components/Admin/Http/Requests/ResourceTypeMappingRequest.php @@ -0,0 +1,129 @@ +route('resource_type_mapping') !== null; + $action = $isEdit ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules(): array + { + return [ + 'resource_type_id' => [ + 'required', + 'exists:pgsql.auth.tbl_resource_types,id', + Rule::unique('pgsql.auth.tbl_resource_type_mappings', 'resource_type_id') + ->ignore($this->route('resource_type_mapping'), 'resource_type_id') + ], + 'table_schema' => [ + 'required', + 'string', + 'max:255', + function ($attribute, $value, $fail) { + $exists = DB::select(" + SELECT EXISTS ( + SELECT 1 + FROM information_schema.schemata + WHERE schema_name = ? + ) as exists + ", [$value])[0]->exists; + + if (!$exists) { + $fail("The selected schema does not exist."); + } + } + ], + 'table_name' => [ + 'required', + 'string', + 'max:255', + function ($attribute, $value, $fail) { + if (!$this->table_schema) { + return; + } + + $exists = DB::select(" + SELECT EXISTS ( + SELECT 1 + FROM information_schema.tables + WHERE table_schema = ? + AND table_name = ? + ) as exists + ", [$this->table_schema, $value])[0]->exists; + + if (!$exists) { + $fail("The selected table does not exist in the specified schema."); + } + } + ], + 'resource_value_column' => [ + 'required', + 'string', + 'max:255', + function ($attribute, $value, $fail) { + if (!$this->table_schema || !$this->table_name) { + return; + } + + $exists = DB::select(" + SELECT EXISTS ( + SELECT 1 + FROM information_schema.columns + WHERE table_schema = ? + AND table_name = ? + AND column_name = ? + ) as exists + ", [$this->table_schema, $this->table_name, $value])[0]->exists; + + if (!$exists) { + $fail("The selected column does not exist in the specified table."); + } + } + ] + ]; + } + + /** + * Get custom messages for validator errors. + * + * @return array + */ + public function messages(): array + { + return [ + 'resource_type_id.required' => 'A resource type must be selected.', + 'resource_type_id.exists' => 'The selected resource type is invalid.', + 'resource_type_id.unique' => 'This resource type already has a mapping.', + 'table_schema.required' => 'A database schema must be selected.', + 'table_schema.max' => 'The schema name cannot exceed 255 characters.', + 'table_name.required' => 'A database table must be selected.', + 'table_name.max' => 'The table name cannot exceed 255 characters.', + 'resource_value_column.required' => 'A value column must be selected.', + 'resource_value_column.max' => 'The column name cannot exceed 255 characters.' + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/ResourceTypeRequest.php b/app/Components/Admin/Http/Requests/ResourceTypeRequest.php new file mode 100644 index 0000000..58060b2 --- /dev/null +++ b/app/Components/Admin/Http/Requests/ResourceTypeRequest.php @@ -0,0 +1,45 @@ +route('resource_type')?->id; + $action = $resourceTypeId ? 'edit' : 'create'; + +// $action = $this->route('resource_type') ? 'edit' : 'create'; + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + public function rules(): array + { + return [ + 'name' => [ + 'required', + 'string', + 'max:255', + Rule::unique('pgsql.auth.tbl_resource_types', 'name')->ignore($this->route('resource_type')) + ], + 'description' => ['nullable', 'string'] + ]; + } + + public function messages(): array + { + return [ + 'name.required' => 'The resource type name is required.', + 'name.unique' => 'This resource type name is already taken.', + 'name.max' => 'The resource type name cannot exceed 255 characters.' + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/RoleRequest.php b/app/Components/Admin/Http/Requests/RoleRequest.php new file mode 100644 index 0000000..4f23099 --- /dev/null +++ b/app/Components/Admin/Http/Requests/RoleRequest.php @@ -0,0 +1,47 @@ +route('role')?->id; + $action = $roleId ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + public function rules(): array + { + return [ + 'name' => [ + 'required', + 'string', + 'max:255', + Rule::unique('pgsql.auth.tbl_roles', 'name') + ->ignore($this->route('role')) + ], + 'description' => ['nullable', 'string'] + ]; + } + + public function messages(): array + { + return [ + 'name.required' => 'The role name is required.', + 'name.unique' => 'This role name is already taken.', + 'name.max' => 'The role name cannot exceed 255 characters.' + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/UserRequest.php b/app/Components/Admin/Http/Requests/UserRequest.php new file mode 100644 index 0000000..d357e0b --- /dev/null +++ b/app/Components/Admin/Http/Requests/UserRequest.php @@ -0,0 +1,87 @@ +route('user')?->id; + $action = $modelId ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + public function rules(): array + { + $rules = [ + 'name' => ['required', 'string', 'max:255'], + 'email' => [ + 'required', + 'string', + 'email', + 'max:255', + Rule::unique('users', 'email') + ], + 'active' => ['boolean'], + ]; + + // Add password rules for create + if ($this->isMethod('POST')) { + $rules['password'] = ['required', 'string', 'min:8', 'confirmed']; + } + + // Modify password rules for update + if ($this->isMethod('PUT') || $this->isMethod('PATCH')) { + $rules['password'] = ['nullable', 'string', 'min:8', 'confirmed']; + $rules['email'][4] = Rule::unique('users', 'email')->ignore($this->route('user')->id); + } + + return $rules; + } + + public function messages(): array + { + return [ + 'name.required' => 'A name is required', + 'name.max' => 'The name cannot be longer than 255 characters', + 'email.required' => 'An email address is required', + 'email.email' => 'Please enter a valid email address', + 'email.unique' => 'This email address is already in use', + 'password.required' => 'A password is required', + 'password.min' => 'The password must be at least 8 characters', + 'password.confirmed' => 'The password confirmation does not match', + ]; + } + + protected function prepareForValidation(): void + { + $this->merge([ + 'active' => $this->has('active') + ]); + } + + /** + * Get the error messages that apply to the request parameters. + * + * @return array + */ + public function attributes(): array + { + return [ + 'name' => 'user name', + 'email' => 'email address', + 'password' => 'password', + 'active' => 'active status', + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/UserRoleRequest.php b/app/Components/Admin/Http/Requests/UserRoleRequest.php new file mode 100644 index 0000000..e4ea2fc --- /dev/null +++ b/app/Components/Admin/Http/Requests/UserRoleRequest.php @@ -0,0 +1,80 @@ +route('userRole') !== null; + $action = $isEdit ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + /** + * Get the validation rules that apply to the request. + */ + public function rules(): array + { + return [ + 'user_id' => [ + 'required', + 'integer', + 'exists:users,id', + Rule::unique('pgsql.auth.tbl_user_roles', 'user_id') + ->where('role_id', $this->input('role_id')) + ->ignore($this->route('userRole')) + ], + 'role_id' => [ + 'required', + 'integer', + 'exists:pgsql.auth.tbl_roles,id' + ], + 'description' => [ + 'nullable', + 'string', + 'max:1000' + ] + ]; + } + + /** + * Get custom messages for validator errors. + */ + public function messages(): array + { + return [ + 'user_id.required' => 'A user must be selected.', + 'user_id.exists' => 'The selected user is invalid.', + 'user_id.unique' => 'This user already has been assigned this role.', + 'role_id.required' => 'A role must be selected.', + 'role_id.exists' => 'The selected role is invalid.', + 'description.max' => 'The description cannot exceed 1000 characters.' + ]; + } + + /** + * Get custom attributes for validator errors. + */ + public function attributes(): array + { + return [ + 'user_id' => 'user', + 'role_id' => 'role', + 'description' => 'description' + ]; + } +} diff --git a/app/Components/Admin/Http/Requests/WebPageRequest.php b/app/Components/Admin/Http/Requests/WebPageRequest.php new file mode 100644 index 0000000..dceb22c --- /dev/null +++ b/app/Components/Admin/Http/Requests/WebPageRequest.php @@ -0,0 +1,44 @@ +route('web_page')?->id; + $action = $webPageId ? 'edit' : 'create'; + + return $this->checkResourcePermission($this->resourceType, $this->resourceValue, $action); + } + + public function rules(): array + { + return [ + 'url' => [ + 'required', + 'string', + 'max:255', + Rule::unique('pgsql.config.tbl_web_pages', 'url')->ignore($this->route('web_page')) + ], + 'description' => ['nullable', 'string'] + ]; + } + + public function messages(): array + { + return [ + 'url.required' => 'The URL is required.', + 'url.max' => 'The URL cannot exceed 255 characters.', + 'url.unique' => 'This URL is already in use.', + ]; + } +} diff --git a/app/Components/Admin/Providers/AdminServiceProvider.php b/app/Components/Admin/Providers/AdminServiceProvider.php new file mode 100644 index 0000000..7e6c0d1 --- /dev/null +++ b/app/Components/Admin/Providers/AdminServiceProvider.php @@ -0,0 +1,46 @@ +loadRoutesFrom(__DIR__ . '/../routes/web.php'); + + // Load views with namespace + $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin'); + + // Register middleware using new Laravel 11 method + $this->app['router']->middlewareGroup('admin', [ + AdminAuthentication::class, + ]); + + // Register view composer + View::composer('admin::layouts.admin', NavigationComposer::class); + + // Publishing assets + if ($this->app->runningInConsole()) { + $this->publishes([ + __DIR__ . '/../resources/views' => resource_path('views/vendor/admin'), + ], 'admin-views'); + } + } +} diff --git a/app/Components/Admin/Traits/ResourceAuthorization.php b/app/Components/Admin/Traits/ResourceAuthorization.php new file mode 100644 index 0000000..89e1059 --- /dev/null +++ b/app/Components/Admin/Traits/ResourceAuthorization.php @@ -0,0 +1,91 @@ +where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('permission_name', $permission); + + // If resourceId is provided, check specific resource or null (all resources) + if ($resourceId !== null) { + $query->where(function($q) use ($resourceId) { + $q->where('resource_id', $resourceId) + ->orWhereNull('resource_id'); + }); + } + + $hasPermission = $query->exists(); + + // Log authorization check + Log::debug('Authorization check', [ + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'permission' => $permission, + 'resource_id' => $resourceId, + 'granted' => $hasPermission + ]); + + return $hasPermission; + + } catch (\Exception $e) { + Log::error('Authorization check failed', [ + 'error' => $e->getMessage(), + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'permission' => $permission, + 'resource_id' => $resourceId + ]); + + return false; + } + } + + /** + * Get all resources of a specific type that the user has permission to access + * + * @param string $resourceType + * @param string $permission + * @return array + */ + public function getAuthorizedResourceIds(string $resourceType, string $permission): array + { + try { + return DB::table('auth.vw_user_authorizations') + ->where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('permission_name', $permission) + ->pluck('resource_id') + ->filter() + ->toArray(); + + } catch (\Exception $e) { + Log::error('Failed to get authorized resource IDs', [ + 'error' => $e->getMessage(), + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'permission' => $permission + ]); + + return []; + } + } +} diff --git a/app/Components/Admin/Traits/UserAuthorization.php b/app/Components/Admin/Traits/UserAuthorization.php new file mode 100644 index 0000000..714a751 --- /dev/null +++ b/app/Components/Admin/Traits/UserAuthorization.php @@ -0,0 +1,36 @@ +where('user_id', $this->id) + ->where('resource_type', $resourceType) + ->where('resource_value', $resourceValue) + ->where('permission_name', $permission); + +// if ($resourceId !== null) { +// $query->where(function($q) use ($resourceId) { +// $q->where('resource_id', $resourceId) +// ->orWhereNull('resource_id'); +// }); +// } + + return $query->exists(); + } +} diff --git a/app/Components/Admin/View/Composers/NavigationComposer.php b/app/Components/Admin/View/Composers/NavigationComposer.php new file mode 100644 index 0000000..9f3207e --- /dev/null +++ b/app/Components/Admin/View/Composers/NavigationComposer.php @@ -0,0 +1,20 @@ +whereNull('parent_id') + ->where('is_active', true) + ->orderBy('order_index') + ->get(); + + $view->with('navigationItems', $navigationItems); + } +} diff --git a/app/Components/Admin/resources/views/admin/dashboard.blade.php b/app/Components/Admin/resources/views/admin/dashboard.blade.php new file mode 100644 index 0000000..8377a49 --- /dev/null +++ b/app/Components/Admin/resources/views/admin/dashboard.blade.php @@ -0,0 +1,205 @@ +@extends('admin::layouts.admin') +@section('title', 'Admin Dashboard') + +@push('scripts') + +@endpush + +@section('content') +
+
+

Admin Dashboard

+
+ +
+ +
+

System Statistics

+
+
+ Users + {{ $systemStats['users_count'] }} +
+
+ Roles + {{ $systemStats['roles_count'] }} +
+
+ User Roles + {{ $systemStats['user_roles_count'] }} +
+
+ Resource Types + {{ $systemStats['resources_count'] }} +
+
+ Resource Type Mappings + {{ $systemStats['resource_mappings_count'] }} +
+
+
+ + +
+

Database Statistics

+
+
+ Database Size + {{ $dbStats[0]->db_size }} +
+
+ Schemas + {{ $dbStats[0]->schema_count }} +
+
+ Tables + {{ $dbStats[0]->table_count }} +
+
+ Views + {{ $dbStats[0]->view_count }} +
+
+ Materialized Views + {{ $dbStats[0]->materialized_view_count }} +
+
+ Indexes + {{ $dbStats[0]->index_count }} +
+
+
+
+ + +
+

Database I/O Activity

+
+ +
+
+ +
+

Database Operations

+
+ +
+
+
+ + +@endsection diff --git a/app/Components/Admin/resources/views/layouts/admin.blade.php b/app/Components/Admin/resources/views/layouts/admin.blade.php new file mode 100644 index 0000000..a39c4dc --- /dev/null +++ b/app/Components/Admin/resources/views/layouts/admin.blade.php @@ -0,0 +1,128 @@ + + + + Admin - @yield('title') + + + + + + + + +
+ +
+
+ + Admin Logo + +
+ +
+ + +
+
+ + Admin Panel +
+ +
+ + + + + +
+
+ +
+ + + My Profile + +
+ @csrf + +
+
+
+
+
+ + + + + +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @yield('content') +
+ +@stack('scripts') + + diff --git a/app/Components/Admin/resources/views/menu-types/create.blade.php b/app/Components/Admin/resources/views/menu-types/create.blade.php new file mode 100644 index 0000000..256bf43 --- /dev/null +++ b/app/Components/Admin/resources/views/menu-types/create.blade.php @@ -0,0 +1,79 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Menu Type') +@section('content') +
+
+

Create Menu Type

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + + +

+ The name must be unique and can only contain letters, numbers, spaces, hyphens, and underscores. + Maximum 100 characters. +

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

+ Provide a clear description of what this menu type represents. Maximum 255 characters. +

+
+ +
+ + + Cancel + + + + +
+
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/menu-types/edit.blade.php b/app/Components/Admin/resources/views/menu-types/edit.blade.php new file mode 100644 index 0000000..4760772 --- /dev/null +++ b/app/Components/Admin/resources/views/menu-types/edit.blade.php @@ -0,0 +1,115 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Menu Type') +@section('content') +
+
+

Edit Menu Type

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +

+ The name must be unique and can only contain letters, numbers, spaces, hyphens, and underscores. + Maximum 100 characters. +

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

+ Provide a clear description of what this menu type represents. Maximum 255 characters. +

+
+ + +
+ +
+
+
+ + +
+
+
+

Danger Zone

+

+ @if($menuType->navigation_items_count > 0) + This menu type has {{ $menuType->navigation_items_count }} associated navigation items and cannot be deleted. + @else + Once you delete a menu type, it cannot be recovered. + @endif +

+
+ + + +
+
+
+
+ + @if($menuType->navigation_items_count > 0) +
+

Associated Navigation Items

+

+ This menu type is currently being used by {{ $menuType->navigation_items_count }} navigation items. + You must remove or reassign these items before this menu type can be deleted. +

+ + View Navigation Items + +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/menu-types/index.blade.php b/app/Components/Admin/resources/views/menu-types/index.blade.php new file mode 100644 index 0000000..ebeca48 --- /dev/null +++ b/app/Components/Admin/resources/views/menu-types/index.blade.php @@ -0,0 +1,153 @@ +@extends('admin::layouts.admin') +@section('title', 'Menu Types') +@section('content') +
+

Menu Types

+ + + Create New Menu Type + + +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + @if(request('search') || request('sort') || request('direction')) + + Clear + + @endif +
+
+
+ +
+ @if($menuTypes->isEmpty()) +
+

No menu types found.

+
+ @else + + + + + + + + + + + + @foreach($menuTypes as $menuType) + + + + + + + + @endforeach + +
+ Name + + Description + + Navigation Items + + Last Updated + + Actions +
+
+ {{ $menuType->name }} +
+
+
+ {{ $menuType->description ?: 'No description' }} +
+
+
+ {{ $menuType->navigation_items_count }} items +
+
+ {{ $menuType->updated_at->format('Y-m-d H:i:s') }} + + + + Edit + + + + + + + + +
+ +
+ {{ $menuTypes->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/migrations/index.blade.php b/app/Components/Admin/resources/views/migrations/index.blade.php new file mode 100644 index 0000000..00f2ccc --- /dev/null +++ b/app/Components/Admin/resources/views/migrations/index.blade.php @@ -0,0 +1,123 @@ +@extends('admin::layouts.admin') +@section('title', 'Migrations') +@section('content') +
+

Database Migrations

+
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + @if(request()->hasAny(['search', 'sort', 'direction'])) + + Clear + + @endif +
+
+
+ +
+ @if($migrations->isEmpty()) +
+

No migrations found.

+
+ @else + + + + + + + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + @endif + + + + @foreach($migrations as $migration) + + + + + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + @endif + + @endforeach + +
+ ID + + Migration + + Batch + + Actions +
+ {{ $migration->id }} + +
+ {{ $migration->formatted_name }} +
+
+ {{ $migration->migration }} +
+
+ {{ $migration->batch }} + + + Details + +
+ +
+ {{ $migrations->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/migrations/show.blade.php b/app/Components/Admin/resources/views/migrations/show.blade.php new file mode 100644 index 0000000..bc8addb --- /dev/null +++ b/app/Components/Admin/resources/views/migrations/show.blade.php @@ -0,0 +1,120 @@ +@extends('admin::layouts.admin') +@section('title', 'Migration Details') +@section('content') +
+

Migration Details

+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Back to List + + @endif +
+ + + +
+
+ +
+ +

+ {{ $migration->id }} +

+
+ + +
+ +

+ {{ $migration->formatted_name }} +

+
+ + +
+ +

+ {{ $migration->migration }} +

+
+ + +
+ +

+ {{ $migration->batch }} +

+
+ + +
+ +

+ @php + $timestamp = preg_match('/^\d{4}_\d{2}_\d{2}_\d{6}/', $migration->migration, $matches) + ? $matches[0] + : null; + if ($timestamp) { + $datetime = \Carbon\Carbon::createFromFormat('Y_m_d_His', $timestamp); + echo $datetime->format('F j, Y g:i:s A'); + } else { + echo 'No timestamp available'; + } + @endphp +

+
+ + +
+ +

+ @php + $type = 'Unknown'; + if (str_contains(strtolower($migration->migration), 'create')) { + $type = 'Create Table'; + } elseif (str_contains(strtolower($migration->migration), 'add')) { + $type = 'Add Column'; + } elseif (str_contains(strtolower($migration->migration), 'update')) { + $type = 'Update Table'; + } elseif (str_contains(strtolower($migration->migration), 'alter')) { + $type = 'Alter Table'; + } + @endphp + {{ $type }} +

+
+
+
+ + +
+ @if($previousMigration = \App\Models\Migration::where('id', '<', $migration->id)->orderBy('id', 'desc')->first()) + + ← Previous Migration + + @else +
+ @endif + + @if($nextMigration = \App\Models\Migration::where('id', '>', $migration->id)->orderBy('id')->first()) + + Next Migration → + + @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/navigation-items/create.blade.php b/app/Components/Admin/resources/views/navigation-items/create.blade.php new file mode 100644 index 0000000..76132e5 --- /dev/null +++ b/app/Components/Admin/resources/views/navigation-items/create.blade.php @@ -0,0 +1,231 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Navigation Item') + +@section('content') +
+
+

Create Navigation Item

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +
+ + + @error('menu_type_id') +

{{ $message }}

+ @enderror +

Select the type of menu this item belongs to.

+
+ + +

The display name of the navigation item.

+
+ + +
+ + + @error('route') +

{{ $message }}

+ @enderror +

Select the route that this navigation item should link to.

+
+ + +
+ +
+ +
+ +
+
+ @error('icon') +

{{ $message }}

+ @enderror +

Select an icon for this navigation item

+ + +
+

Available Icons:

+
+ @foreach(\App\Helpers\IconHelper::getCommonIcons() as $previewIcon) +
+ + {{ $previewIcon['name'] }} +
+ @endforeach +
+
+
+ + +

Determines the display order of the navigation item (0 = + first).

+
+ + +
+ + + @error('parent_id') +

{{ $message }}

+ @enderror +

Optional parent item for creating nested navigation.

+
+ + +
+ + @error('is_active') +

{{ $message }}

+ @enderror +

Whether this navigation item should be visible in the + menu.

+
+ + +
+ + + Cancel + + + + +
+
+
+
+@endsection + +@push('scripts') + +@endpush diff --git a/app/Components/Admin/resources/views/navigation-items/edit.blade.php b/app/Components/Admin/resources/views/navigation-items/edit.blade.php new file mode 100644 index 0000000..a6847e4 --- /dev/null +++ b/app/Components/Admin/resources/views/navigation-items/edit.blade.php @@ -0,0 +1,246 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Navigation Item') + +@section('content') +
+
+

Edit Navigation Item

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +
+ + + @error('menu_type_id') +

{{ $message }}

+ @enderror +

Select the type of menu this item belongs to.

+
+ + +

The display name of the navigation item.

+
+ + +
+ + + @error('route') +

{{ $message }}

+ @enderror +

Select the route that this navigation item should link to.

+
+ + +
+ +
+ +
+ +
+
+ @error('icon') +

{{ $message }}

+ @enderror +

Select an icon for this navigation item

+ + +
+

Available Icons:

+
+ @foreach(\App\Helpers\IconHelper::getCommonIcons() as $previewIcon) +
+ + {{ $previewIcon['name'] }} +
+ @endforeach +
+
+
+ + +

Determines the display order of the navigation item (0 = + first).

+
+ + +
+ + + @error('parent_id') +

{{ $message }}

+ @enderror +

Optional parent item for creating nested navigation.

+
+ + +
+ + @error('is_active') +

{{ $message }}

+ @enderror +

Whether this navigation item should be visible in the + menu.

+
+ + +
+ +
+
+ + + +
+
+

Danger Zone

+ + + +
+

+ Once you delete a navigation item, it cannot be recovered. Please be certain. +

+
+
+
+
+ + @push('scripts') + + @endpush +@endsection diff --git a/app/Components/Admin/resources/views/navigation-items/index.blade.php b/app/Components/Admin/resources/views/navigation-items/index.blade.php new file mode 100644 index 0000000..ccc7a51 --- /dev/null +++ b/app/Components/Admin/resources/views/navigation-items/index.blade.php @@ -0,0 +1,181 @@ +@extends('admin::layouts.admin') +@section('title', 'Navigation Items') + +@section('content') +
+
+

Navigation Items

+ + + Create New Item + + +
+ + + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + @if(request('search') || request('menu_type_id')) + + Clear + + @endif +
+
+
+ +
+ @if($navItems->isEmpty()) +
+

No navigation items found.

+
+ @else +
+ + + + + + + + + + + + + + + @foreach($navItems as $item) + + + + + + + + + + + @endforeach + +
+ Menu Type + + Name + + Icon + + Route + + Order + + Parent + + Status + + Actions +
+ {{ $item->menuType->name }} + +
+ @if($item->icon) + + @endif + {{ $item->name }} +
+
+ @if($item->icon) + {{ $item->icon }} + @else + - + @endif + + {{ $item->route }} + + {{ $item->order_index }} + + {{ $item->parent?->name ?: '-' }} + + + {{ $item->is_active ? 'Active' : 'Inactive' }} + + +
+ + + Edit + + + + + + + + +
+
+
+ +
+ {{ $navItems->links() }} +
+ @endif +
+
+@endsection diff --git a/app/Components/Admin/resources/views/permissions/create.blade.php b/app/Components/Admin/resources/views/permissions/create.blade.php new file mode 100644 index 0000000..de13622 --- /dev/null +++ b/app/Components/Admin/resources/views/permissions/create.blade.php @@ -0,0 +1,55 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Permission') +@section('content') +
+
+

Create Permission

+ + Back to List + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + + +
+ + + @error('description') +

{{ $message }}

+ @enderror +
+ +
+ +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/permissions/edit.blade.php b/app/Components/Admin/resources/views/permissions/edit.blade.php new file mode 100644 index 0000000..f626e47 --- /dev/null +++ b/app/Components/Admin/resources/views/permissions/edit.blade.php @@ -0,0 +1,75 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Permission') +@section('content') +
+
+

Edit Permission

+ + Back to List + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + + +
+ + + @error('description') +

{{ $message }}

+ @enderror +
+ +
+ +
+
+ + +
+
+

Danger Zone

+ + + +
+

+ Once you delete this permission, there is no going back. Please be certain. +

+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/permissions/index.blade.php b/app/Components/Admin/resources/views/permissions/index.blade.php new file mode 100644 index 0000000..37c699c --- /dev/null +++ b/app/Components/Admin/resources/views/permissions/index.blade.php @@ -0,0 +1,122 @@ +@extends('admin::layouts.admin') +@section('title', 'Permissions') +@section('content') +
+

Permissions

+ + + Create New Permission + + +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + @if(request('search') || request('sort')) + + Clear + + @endif +
+
+
+ +
+ @if($permissions->isEmpty()) +
+

No permissions found.

+
+ @else + + + + + + + + + + @foreach($permissions as $permission) + + + + + + @endforeach + +
+ Name + + Description + + Actions +
+ {{ $permission->name }} + +
+ {{ $permission->description ?: 'No description' }} +
+
+ + Edit + + + + + + + +
+ +
+ {{ $permissions->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/resource-associations/create.blade.php b/app/Components/Admin/resources/views/resource-associations/create.blade.php new file mode 100644 index 0000000..972b83d --- /dev/null +++ b/app/Components/Admin/resources/views/resource-associations/create.blade.php @@ -0,0 +1,250 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Resource Association') +@section('content') +
+
+

Create Resource Association

+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Back to List + + @endif +
+ + @if($errors->any()) +
+ Please fix the following errors: +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'create')) + +
+ + + @error('user_id') +

{{ $message }}

+ @enderror +
+ +
+ + + @error('resource_type_id') +

{{ $message }}

+ @enderror +
+ +
+ + + @error('role_id') +

{{ $message }}

+ @enderror +

Only roles assigned to the selected user will be shown.

+
+ +
+ + + @error('resource_id') +

{{ $message }}

+ @enderror +

Select a resource type first to load available resources.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +
+ +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Cancel + + @else +
+ @endif + +
+
+ @else +
+ You do not have permission to create resource associations. +
+ @endif +
+
+ + @push('scripts') + + @endpush +@endsection diff --git a/app/Components/Admin/resources/views/resource-associations/edit.blade.php b/app/Components/Admin/resources/views/resource-associations/edit.blade.php new file mode 100644 index 0000000..db57b28 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-associations/edit.blade.php @@ -0,0 +1,264 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Resource Association') +@section('content') +
+
+

Edit Resource Association

+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Back to List + + @endif +
+ + @if($errors->any()) +
+ Please fix the following errors: +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'edit')) + +
+ + + @error('user_id') +

{{ $message }}

+ @enderror +
+ +
+ + + @error('resource_type_id') +

{{ $message }}

+ @enderror +
+ +
+ + + @error('role_id') +

{{ $message }}

+ @enderror +

Only roles assigned to the selected user will be shown.

+
+ +
+ + + @error('resource_id') +

{{ $message }}

+ @enderror +

Select a resource type first to load available resources.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +
+ +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Cancel + + @else +
+ @endif + +
+
+ + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'delete')) +
+
+

Danger Zone

+ + + +
+
+ @endif + @else +
+ You do not have permission to edit resource associations. +
+ @endif +
+
+ + @push('scripts') + + @endpush +@endsection diff --git a/app/Components/Admin/resources/views/resource-associations/index.blade.php b/app/Components/Admin/resources/views/resource-associations/index.blade.php new file mode 100644 index 0000000..a8e1dc5 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-associations/index.blade.php @@ -0,0 +1,153 @@ +@extends('admin::layouts.admin') +@section('title', 'Resource Associations') +@section('content') +
+

Resource Associations

+ + + Create New Resource Association + + +
+ + + + + +
+ +
+ +
+
+ + +
+
+ + +
+
+ + @if(request()->hasAny(['search', 'sort', 'direction'])) + + Clear + + @endif +
+
+
+ +
+ @if($resourceAssociations->isEmpty()) +
+

No resource associations found.

+
+ @else + + + + + + + + + + + + + + @foreach($resourceAssociations as $resourceAssociation) + + + + + + + + + + @endforeach + +
+ User + + Resource Type + + Role + + Resource + + Description + + Created At + + Actions +
+
+ {{ $resourceAssociation->user->name }} +
+
+ {{ $resourceAssociation->user->email }} +
+
+ {{ $resourceAssociation->resourceType->name }} + + {{ $resourceAssociation->role->name }} + + {{ $resourceAssociation->resource_value }} + +
+ {{ $resourceAssociation->description ?: 'No description' }} +
+
+ {{ $resourceAssociation->created_at->format('Y-m-d H:i:s') }} + + + Edit + + + + + + + +
+ +
+ {{ $resourceAssociations->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/resource-type-mappings/create.blade.php b/app/Components/Admin/resources/views/resource-type-mappings/create.blade.php new file mode 100644 index 0000000..6552344 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-type-mappings/create.blade.php @@ -0,0 +1,248 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Resource Type Mapping') + +@section('content') +
+
+

Create Resource Type Mapping

+ + + Back to List + + +
+ + @if($errors->any()) + + @endif + +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'create')) + + +
+ + + @error('resource_type_id') +

{{ $message }}

+ @enderror +

Select the resource type to map to a database table

+
+ + +
+ + + @error('table_schema') +

{{ $message }}

+ @enderror +

Select the database schema containing the target table

+
+ + +
+ + + @error('table_name') +

{{ $message }}

+ @enderror +

Select the table to map the resource type to

+
+ + +
+ + + @error('resource_value_column') +

{{ $message }}

+ @enderror +

Select the column that contains the resource identifier

+
+ + +
+ + + + +
+
+ @else +
+ You do not have permission to create resource type mappings. +
+ @endif +
+
+ + @push('scripts') + + @endpush +@endsection diff --git a/app/Components/Admin/resources/views/resource-type-mappings/edit.blade.php b/app/Components/Admin/resources/views/resource-type-mappings/edit.blade.php new file mode 100644 index 0000000..bcd0761 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-type-mappings/edit.blade.php @@ -0,0 +1,280 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Resource Type Mapping') + +@section('content') +
+
+

Edit Resource Type Mapping

+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + Back to List + + @endif +
+ + @if($errors->any()) + + @endif + +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'edit')) + + + +
+ + + @error('resource_type_id') +

{{ $message }}

+ @enderror +

Select the resource type to map to a database table

+
+ + +
+ + + @error('table_schema') +

{{ $message }}

+ @enderror +

Select the database schema containing the target table

+
+ + +
+ + + @error('table_name') +

{{ $message }}

+ @enderror +

Select the table to map the resource type to

+
+ + +
+ + + @error('resource_value_column') +

{{ $message }}

+ @enderror +

Select the column that contains the resource identifier

+
+ + +
+ @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'view')) + + @endif + +
+
+ + + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'delete')) +
+
+

Danger Zone

+ + + +
+
+ @endif + @else +
+ You do not have permission to edit resource type mappings. +
+ @endif +
+
+ + @push('scripts') + + @endpush +@endsection diff --git a/app/Components/Admin/resources/views/resource-type-mappings/index.blade.php b/app/Components/Admin/resources/views/resource-type-mappings/index.blade.php new file mode 100644 index 0000000..4c6dbbe --- /dev/null +++ b/app/Components/Admin/resources/views/resource-type-mappings/index.blade.php @@ -0,0 +1,189 @@ +@extends('admin::layouts.admin') +@section('title', 'Resource Type Mappings') + +@section('content') +
+

Resource Type Mappings

+ + + Create New Mapping + + +
+ + + + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + @if(request('search') || request('schema') || request('sort') || request('direction')) + + Clear Filters + + @endif +
+
+
+ + +
+ @if($resource_type_mappings->isEmpty()) +
+

No resource type mappings found.

+ @if(request('search') || request('schema') || request('sort') || request('direction')) +

Try adjusting your search filters

+ @endif +
+ @else +
+ + + + + + + + + + + + + @foreach($resource_type_mappings as $mapping) + + + + + + + + + @endforeach + +
+ Resource Type + + Schema + + Table + + Value Column + + Created At + + Actions +
+
+ {{ $mapping->resourceType->name }} +
+
+
{{ $mapping->table_schema }}
+
+
{{ $mapping->table_name }}
+
+
{{ $mapping->resource_value_column }}
+
+
+ {{ $mapping->created_at->format('Y-m-d H:i:s') }} +
+
+
+ + + Edit + + + + + + + + +
+
+
+ +
+ {{ $resource_type_mappings->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/resource-types/create.blade.php b/app/Components/Admin/resources/views/resource-types/create.blade.php new file mode 100644 index 0000000..b9c4e0b --- /dev/null +++ b/app/Components/Admin/resources/views/resource-types/create.blade.php @@ -0,0 +1,65 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Resource Type') +@section('content') +
+
+

Create Resource Type

+ + Back to List + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +

The name must be unique and cannot exceed 255 characters.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Provide a clear description of what this resource type represents.

+
+ +
+ + Cancel + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/resource-types/edit.blade.php b/app/Components/Admin/resources/views/resource-types/edit.blade.php new file mode 100644 index 0000000..72dcdd9 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-types/edit.blade.php @@ -0,0 +1,76 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Resource Type') +@section('content') +
+
+

Edit Resource Type

+ + Back to List + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +

The name must be unique and cannot exceed 255 characters.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Provide a clear description of what this resource type represents.

+
+ +
+ +
+
+ +
+
+

Danger Zone

+ + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/resource-types/index.blade.php b/app/Components/Admin/resources/views/resource-types/index.blade.php new file mode 100644 index 0000000..e06a4e5 --- /dev/null +++ b/app/Components/Admin/resources/views/resource-types/index.blade.php @@ -0,0 +1,127 @@ +@extends('admin::layouts.admin') +@section('title', 'Resource Types') +@section('content') +
+

Resource Types

+ + + Create New Resource Type + + +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + @if(request('search') || request('sort')) + + Clear + + @endif +
+
+
+ +
+ @if($resourceTypes->isEmpty()) +
+

No resource types found.

+
+ @else + + + + + + + + + + + @foreach($resourceTypes as $resourceType) + + + + + + + @endforeach + +
+ Name + + Description + + Created At + + Actions +
+ {{ $resourceType->name }} + +
+ {{ $resourceType->description ?: 'No description' }} +
+
+ {{ $resourceType->created_at->format('Y-m-d H:i:s') }} + + + Edit + + + + + + + +
+
+ {{ $resourceTypes->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/roles/create.blade.php b/app/Components/Admin/resources/views/roles/create.blade.php new file mode 100644 index 0000000..913c5c9 --- /dev/null +++ b/app/Components/Admin/resources/views/roles/create.blade.php @@ -0,0 +1,55 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Role') +@section('content') +
+ +
+

Create Role

+ + Back to List + +
+ +
+ + +

Choose a descriptive name for this role (e.g., "Content Editor", "Store Manager")

+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Provide a clear description of what this role represents and its responsibilities

+
+ +
+ + Cancel + + +
+
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/roles/edit.blade.php b/app/Components/Admin/resources/views/roles/edit.blade.php new file mode 100644 index 0000000..20438c2 --- /dev/null +++ b/app/Components/Admin/resources/views/roles/edit.blade.php @@ -0,0 +1,70 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Role') +@section('content') +
+ +
+

Edit Role: {{ $role->name }}

+ + Back to List + +
+ +
+ + +

Choose a descriptive name for this role (e.g., "Content Editor", "Store Manager")

+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Provide a clear description of what this role represents and its responsibilities

+
+ +
+ + Cancel + + +
+
+
+ + +
+

Danger Zone

+ + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/roles/index.blade.php b/app/Components/Admin/resources/views/roles/index.blade.php new file mode 100644 index 0000000..f767028 --- /dev/null +++ b/app/Components/Admin/resources/views/roles/index.blade.php @@ -0,0 +1,129 @@ +@extends('admin::layouts.admin') +@section('title', 'Roles') +@section('content') +
+

Roles

+ + + Create New Role + + +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + @if(request()->hasAny(['search', 'sort'])) + + Clear + + @endif +
+
+
+ +
+ @if($roles->isEmpty()) +
+

No roles found.

+
+ @else + + + + + + + + + + + @foreach($roles as $role) + + + + + + + @endforeach + +
+ Name + + Description + + Created At + + Actions +
+ {{ $role->name }} + +
+ {{ $role->description ?: 'No description' }} +
+
+ {{ $role->created_at->format('Y-m-d H:i:s') }} + + + Edit + + + Manage Permissions + + + + + + + + +
+ +
+ {{ $roles->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/roles/manage-permissions.blade.php b/app/Components/Admin/resources/views/roles/manage-permissions.blade.php new file mode 100644 index 0000000..9451aa4 --- /dev/null +++ b/app/Components/Admin/resources/views/roles/manage-permissions.blade.php @@ -0,0 +1,131 @@ +@extends('admin::layouts.admin') +@section('title', 'Manage Role Permissions') +@section('content') +
+
+

+ Manage Permissions: {{ $role->name }} +

+ +
+ + + + +
+ +
+

Role Details

+

{{ $role->description ?: 'No description provided' }}

+ + @if($isSystemRole) +
+

+ Warning: Modifying permissions for this role may affect system-wide access controls. + Please proceed with caution. +

+
+ @endif +
+ +
+
+

Permissions

+ +
+ + +
+
+ + @if($permissions->isEmpty()) +

No permissions available.

+ @else +
+ @foreach($permissions as $permission) +
+
+ id, $rolePermissionIds) ? 'checked' : '' }} + {{ ($criticalPermissions[$permission->id] && !$isSuperAdmin) ? 'disabled' : '' }}> +
+
+ + @if($permission->description) +

{{ $permission->description }}

+ @endif +
+
+ @endforeach +
+ +
+

Permission Categories:

+
+
+ View: Read-only access +
+
+ Create: Ability to add new items +
+
+ Edit: Modify existing items +
+
+ Delete: Remove items +
+
+
+ @endif +
+ +
+ + +
+
+
+
+ + +@endsection diff --git a/app/Components/Admin/resources/views/user-roles/create.blade.php b/app/Components/Admin/resources/views/user-roles/create.blade.php new file mode 100644 index 0000000..d5f5a7e --- /dev/null +++ b/app/Components/Admin/resources/views/user-roles/create.blade.php @@ -0,0 +1,102 @@ +@extends('admin::layouts.admin') +@section('title', 'Assign User Role') +@section('content') +
+
+

Assign User Role

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +
+ + + @error('user_id') +

{{ $message }}

+ @enderror +

Select the user to assign the role to.

+
+ +
+ + + @error('role_id') +

{{ $message }}

+ @enderror +

Select the role to assign to the user.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Optional: Provide a reason or note for this role assignment.

+
+ +
+ + + Cancel + + + +
+
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/user-roles/edit.blade.php b/app/Components/Admin/resources/views/user-roles/edit.blade.php new file mode 100644 index 0000000..a08e1d9 --- /dev/null +++ b/app/Components/Admin/resources/views/user-roles/edit.blade.php @@ -0,0 +1,117 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit User Role Assignment') +@section('content') +
+
+

Edit User Role Assignment

+ + + Back to List + + +
+ + @if($errors->any()) + +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + +
+ + + @error('user_id') +

{{ $message }}

+ @enderror +

Select the user to assign the role to.

+
+ +
+ + + @error('role_id') +

{{ $message }}

+ @enderror +

Select the role to assign to the user.

+
+ +
+ + + @error('description') +

{{ $message }}

+ @enderror +

Optional: Provide a reason or note for this role assignment.

+
+ +
+ +
+
+ + +
+
+

Danger Zone

+ + + + + +
+
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/user-roles/index.blade.php b/app/Components/Admin/resources/views/user-roles/index.blade.php new file mode 100644 index 0000000..48420ab --- /dev/null +++ b/app/Components/Admin/resources/views/user-roles/index.blade.php @@ -0,0 +1,156 @@ +@extends('admin::layouts.admin') +@section('title', 'User Roles') +@section('content') +
+

User Role Assignments

+ + + Assign New Role + + +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + @if(request('search') || request('sort') || request('direction')) + + Clear + + @endif +
+
+
+ +
+ @if($userRoles->isEmpty()) +
+

No user role assignments found.

+
+ @else + + + + + + + + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'edit') || + auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'delete')) + + @endif + + + + @foreach($userRoles as $userRole) + + + + + + @if(auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'edit') || + auth()->user()->checkResourcePermission($thisResourceType, $thisResourceValue, 'delete')) + + @endif + + @endforeach + +
+ User + + Role + + Description + + Date Assigned + + Actions +
+
+ {{ $userRole->user->name }} +
+
+ {{ $userRole->user->email }} +
+
+ {{ $userRole->role->name }} + +
+ {{ $userRole->description ?: 'No description' }} +
+
+ {{ $userRole->created_at->format('Y-m-d H:i:s') }} + + + Edit + + + + + + + +
+
+ {{ $userRoles->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/resources/views/users/create.blade.php b/app/Components/Admin/resources/views/users/create.blade.php new file mode 100644 index 0000000..61c6131 --- /dev/null +++ b/app/Components/Admin/resources/views/users/create.blade.php @@ -0,0 +1,90 @@ +@extends('admin::layouts.admin') + +@section('title', 'Create User') + +@section('content') +
+ +
+

Create User

+ + + Back to List + + +
+ +
+ + + + + + + + + +
+ +
+ +
+ + + Cancel + + + +
+
+
+
+ + +
+
+

You don't have permission to create users.

+ + + Back to Users List + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/users/edit.blade.php b/app/Components/Admin/resources/views/users/edit.blade.php new file mode 100644 index 0000000..33c1aad --- /dev/null +++ b/app/Components/Admin/resources/views/users/edit.blade.php @@ -0,0 +1,91 @@ +@extends('admin::layouts.admin') + +@section('title', 'Edit User') + +@section('content') +
+ +
+

Edit User: {{ $user->name }}

+ + + Back to List + + +
+ +
+ + + + + + +

Leave blank to keep current password

+ + + +
+ +
+ +
+ + + Cancel + + + +
+
+
+ + +
+

Danger Zone

+ + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/users/index.blade.php b/app/Components/Admin/resources/views/users/index.blade.php new file mode 100644 index 0000000..374ce44 --- /dev/null +++ b/app/Components/Admin/resources/views/users/index.blade.php @@ -0,0 +1,144 @@ +@extends('admin::layouts.admin') +@section('title', 'Users') +@section('content') +
+

Users

+ + + Create New User + + +
+ + + + +
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + @if(request()->hasAny(['search', 'status', 'sort'])) + + Clear + + @endif +
+
+
+ +
+ Total Users: {{ $users->total() }} +
+ + @if($users->isEmpty()) +
+

No users found.

+
+ @else + + + + + + + + + + + @foreach($users as $user) + + + + + + + @endforeach + +
+ Name + + Email + + Status + + Actions +
+ {{ $user->name }} + + {{ $user->email }} + + + {{ $user->active ? 'Active' : 'Inactive' }} + + + + Edit + + + + + + + +
+ +
+ {{ $users->links() }} +
+ @endif +
+
+@endsection diff --git a/app/Components/Admin/resources/views/users/manage-roles.blade.php b/app/Components/Admin/resources/views/users/manage-roles.blade.php new file mode 100644 index 0000000..e3118a4 --- /dev/null +++ b/app/Components/Admin/resources/views/users/manage-roles.blade.php @@ -0,0 +1,140 @@ +@extends('admin::layouts.admin') +@section('title', 'Manage User Roles') +@section('content') +
+
+

Manage Roles: {{ $user->name }}

+ + Back to Users + +
+ + @if(session('success')) +
+ {{ session('success') }} +
+ @endif + + @if(session('error')) +
+ {{ session('error') }} +
+ @endif + + {{-- Current Role Assignments --}} +
+

Current Role Assignments

+ + @if($userAccessRoles->isEmpty()) +

No roles currently assigned.

+ @else + + + + + + + + + + @foreach($userAccessRoles as $userRole) + + + + + + @endforeach + +
RoleContextActions
{{ $userRole->role->name }} + @if($userRole->store) + Store: {{ $userRole->store->name }} + @elseif($userRole->group) + Group: {{ $userRole->group->name }} + @endif + +
+ @csrf + @method('DELETE') + +
+
+ @endif + + {{-- Assign New Role Form --}} +

Assign New Role

+
+ @csrf + +
+ {{-- Role Selection --}} +
+ + +
+ + {{-- Context Selection --}} +
+ {{-- Store Selection --}} +
+ + +
+ + {{-- Group Selection --}} +
+ + +
+
+ +
+ +
+
+
+
+
+ + +@endsection diff --git a/app/Components/Admin/resources/views/web-pages/create.blade.php b/app/Components/Admin/resources/views/web-pages/create.blade.php new file mode 100644 index 0000000..74b88ac --- /dev/null +++ b/app/Components/Admin/resources/views/web-pages/create.blade.php @@ -0,0 +1,71 @@ +@extends('admin::layouts.admin') +@section('title', 'Create Web Page') +@section('content') +
+
+

Create Web Page

+ + Back to List + +
+ + @if($errors->any()) +
+ Please fix the following errors: +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ +
+ + + * + + +

The URL must be unique and cannot exceed 255 characters.

+
+
+
+ +
+ + +

Provide a clear description of what this web page represents.

+
+
+
+ +
+ + Cancel + + +
+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/web-pages/edit.blade.php b/app/Components/Admin/resources/views/web-pages/edit.blade.php new file mode 100644 index 0000000..76f2612 --- /dev/null +++ b/app/Components/Admin/resources/views/web-pages/edit.blade.php @@ -0,0 +1,85 @@ +@extends('admin::layouts.admin') +@section('title', 'Edit Web Page') +@section('content') +
+
+

Edit Web Page

+ + Back to List + +
+ + @if($errors->any()) +
+ Please fix the following errors: +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ +
+ + + * + + +

The URL must be unique and cannot exceed 255 characters.

+
+
+
+ +
+ + +

Provide a clear description of what this web page represents.

+
+
+
+ +
+ +
+
+ + +
+
+

Danger Zone

+ + + +
+

+ Once you delete this web page, there is no going back. Please be certain. +

+
+
+
+@endsection diff --git a/app/Components/Admin/resources/views/web-pages/index.blade.php b/app/Components/Admin/resources/views/web-pages/index.blade.php new file mode 100644 index 0000000..c07e37f --- /dev/null +++ b/app/Components/Admin/resources/views/web-pages/index.blade.php @@ -0,0 +1,124 @@ +@extends('admin::layouts.admin') +@section('title', 'Web Pages') + +@section('content') +
+

Web Pages

+ @if(auth()->user()->checkResourcePermission($thisResourceType, 'admin.web-pages.php','create')) + + Create New Page + + @endif +
+ + + + + +
+ +
+ + +
+
+ + +
+
+ + @if(request()->hasAny(['search', 'sort'])) + + Clear + + @endif +
+
+
+ +
+ @if($webPages->isEmpty()) +
+

No web pages found.

+
+ @else + + + + + + + + + + + @foreach($webPages as $page) + + + + + + + @endforeach + +
+ URL + + Description + + Created At + + Actions +
+ {{ $page->url }} + +
+ {{ $page->description ?: 'No description' }} +
+
+ {{ $page->created_at->format('Y-m-d H:i:s') }} + + @if(auth()->user()->checkResourcePermission('web_pages', 'admin.web-pages.php','edit')) + Edit + @endif + + @if(auth()->user()->checkResourcePermission('web_pages', 'admin.web-pages.php','delete')) + + + + @endif +
+
+ {{ $webPages->links() }} +
+ @endif +
+@endsection diff --git a/app/Components/Admin/routes/web.php b/app/Components/Admin/routes/web.php new file mode 100644 index 0000000..aae3f9c --- /dev/null +++ b/app/Components/Admin/routes/web.php @@ -0,0 +1,193 @@ +name('admin.')->middleware(['web', 'auth'])->group(function () { + + Route::middleware(['resource.access:web_pages,admin.roles.php']) + ->group(function () { + // Resource routes with updated naming convention + Route::resource('roles', RolesController::class) + ->except(['show']) + ->names([ + 'index' => 'roles.index', + 'create' => 'roles.create', + 'store' => 'roles.store', + 'edit' => 'roles.edit', + 'update' => 'roles.update', + 'destroy' => 'roles.destroy', + ]); + + // Permission management routes + Route::get('/roles/{role}/permissions', [RolesController::class, 'managePermissions']) + ->name('roles.permissions'); + + Route::post('/roles/{role}/permissions', [RolesController::class, 'updatePermissions']) + ->name('roles.permissions.update'); + }); + + Route::middleware('resource.access:web_pages,admin.users.php') + ->group(function () { + Route::resource('users', UsersController::class) + ->except(['show']) // We don't need a show route for users + ->names([ + 'index' => 'users.index', + 'create' => 'users.create', + 'store' => 'users.store', + 'edit' => 'users.edit', + 'update' => 'users.update', + 'destroy' => 'users.destroy', + ]); + }); + + // Resource Types management + Route::middleware('resource.access:web_pages,admin.resource-types.php')->group(function () { + Route::resource('resource-types', ResourceTypesController::class); + }); + +// Resource Type Mappings Routes + Route::middleware('resource.access:web_pages,admin.resource-type-mappings.php') + ->group(function () { + // AJAX routes must come BEFORE resource routes to prevent conflicts + Route::prefix('resource-type-mappings') + ->name('resource-type-mappings.') + ->middleware(['resource.access:web_pages,admin.resource-type-mappings.php']) + ->group(function () { + Route::get('/ajax/tables', [ResourceTypeMappingsController::class, 'getTables']) + ->name('tables'); + Route::get('/ajax/columns', [ResourceTypeMappingsController::class, 'getColumns']) + ->name('columns'); + }); + + // Main resource routes + Route::resource('resource-type-mappings', ResourceTypeMappingsController::class) + ->parameters([ + 'resource-type-mappings' => 'resource_type_mapping' + ]) + ->except(['show']) // We don't need a show route + ->names([ + 'index' => 'resource-type-mappings.index', + 'create' => 'resource-type-mappings.create', + 'store' => 'resource-type-mappings.store', + 'edit' => 'resource-type-mappings.edit', + 'update' => 'resource-type-mappings.update', + 'destroy' => 'resource-type-mappings.destroy', + ]); + }); + + Route::middleware('resource.access:web_pages,admin.menu-types.php') + ->group(function () { + Route::resource('menu-types', MenuTypesController::class) + ->except(['show']) // Since we don't have a show route + ->names([ + 'index' => 'menu-types.index', + 'create' => 'menu-types.create', + 'store' => 'menu-types.store', + 'edit' => 'menu-types.edit', + 'update' => 'menu-types.update', + 'destroy' => 'menu-types.destroy', + ]); + }); + + Route::middleware('resource.access:web_pages,admin.navigation-items.php') + ->group(function () { + Route::resource('navigation-items', NavigationItemsController::class) + ->except(['show']) // We don't have a show route + ->names([ + 'index' => 'navigation-items.index', + 'create' => 'navigation-items.create', + 'store' => 'navigation-items.store', + 'edit' => 'navigation-items.edit', + 'update' => 'navigation-items.update', + 'destroy' => 'navigation-items.destroy', + ]); + }); + +// Route::resource('permissions', PermissionsController::class); + Route::get('/', [AdminDashboardController::class, 'index'])->name('admin.dashboard'); + + Route::get('/database-io', [AdminDashboardController::class, 'getDatabaseIO']) + ->name('database.io'); + + Route::middleware('resource.access:web_pages,admin.user-roles.php') + ->group(function () { + Route::resource('user-roles', UserRolesController::class) + ->parameters([ + 'user-roles' => 'userRole' + ]) + ->except(['show']) // We don't have a show route + ->names([ + 'index' => 'user-roles.index', + 'create' => 'user-roles.create', + 'store' => 'user-roles.store', + 'edit' => 'user-roles.edit', + 'update' => 'user-roles.update', + 'destroy' => 'user-roles.destroy', + ]); + }); + + Route::middleware('resource.access:web_pages,admin.web-pages.php')->group(function () { + Route::resource('web-pages', WebPagesController::class); + }); + + Route::middleware('resource.access:web_pages,admin.permissions.php')->group(function () { + Route::resource('permissions', PermissionsController::class); + }); + + +// Resource Associations Routes + Route::middleware('resource.access:web_pages,admin.resource-associations.php') + ->group(function () { + // AJAX routes must come before resource routes to prevent conflicts + Route::prefix('resource-associations')->name('resource-associations.')->group(function () { + Route::get('/roles', [ResourceAssociationsController::class, 'getRoles']) + ->name('roles'); + Route::get('/resources', [ResourceAssociationsController::class, 'getResources']) + ->name('resources'); + }); + + // Main resource routes + Route::resource('resource-associations', ResourceAssociationsController::class) + ->parameters([ + 'resource-associations' => 'resource_association' + ]) + ->except(['show']) // We don't need a show route + ->names([ + 'index' => 'resource-associations.index', + 'create' => 'resource-associations.create', + 'store' => 'resource-associations.store', + 'edit' => 'resource-associations.edit', + 'update' => 'resource-associations.update', + 'destroy' => 'resource-associations.destroy', + ]); + }); + + Route::middleware('resource.access:web_pages,admin.migrations.php') + ->group(function () { + Route::resource('migrations', MigrationsController::class) + ->only(['index', 'show']) + ->names([ + 'index' => 'migrations.index', + 'show' => 'migrations.show', + ]); + }); +}); + diff --git a/app/Components/Api/Http/Controllers/BaseApiController.php b/app/Components/Api/Http/Controllers/BaseApiController.php new file mode 100644 index 0000000..f1633e0 --- /dev/null +++ b/app/Components/Api/Http/Controllers/BaseApiController.php @@ -0,0 +1,141 @@ +requestId = request()->header('X-Request-ID') ?? (string) Str::uuid(); + + // Get API version from route parameter or default to 'v1' + $this->apiVersion = request()->route('version') ?? 'v1'; + } + + /** + * Get response metadata. + * + * @param array $additionalMeta + * @return array + */ + protected function getMetadata(array $additionalMeta = []): array + { + return array_merge([ + 'timestamp' => now()->toIso8601String(), + 'request_id' => $this->requestId, + 'api_version' => $this->apiVersion, + ], $additionalMeta); + } + + /** + * Send a success response. + * + * @param mixed $data + * @param string|null $message + * @param array $meta + * @return JsonResponse + */ + protected function respondSuccess(mixed $data = null, ?string $message = null, array $meta = []): JsonResponse + { + $response = [ + 'success' => true, + 'data' => $data, + 'meta' => $this->getMetadata($meta) + ]; + + if ($message) { + $response['message'] = $message; + } + + return response()->json($response, $this->statusCode) + ->header('X-Request-ID', $this->requestId); + } + + /** + * Send an error response. + * + * @param string $message + * @param mixed $errors + * @param int $statusCode + * @return JsonResponse + */ + protected function respondError(string $message, mixed $errors = null, int $statusCode = 400): JsonResponse + { + $response = [ + 'success' => false, + 'message' => $message, + 'meta' => $this->getMetadata() + ]; + + if ($errors !== null) { + $response['errors'] = $errors; + } + + return response()->json($response, $statusCode) + ->header('X-Request-ID', $this->requestId); + } + + /** + * Send a not found response. + * + * @param string $message + * @return JsonResponse + */ + protected function respondNotFound(string $message = 'Resource not found'): JsonResponse + { + return $this->respondError($message, null, 404); + } + + /** + * Send an unauthorized response. + * + * @param string $message + * @return JsonResponse + */ + protected function respondUnauthorized(string $message = 'Unauthorized'): JsonResponse + { + return $this->respondError($message, null, 401); + } + + /** + * Send a forbidden response. + * + * @param string $message + * @return JsonResponse + */ + protected function respondForbidden(string $message = 'Forbidden'): JsonResponse + { + return $this->respondError($message, null, 403); + } + + /** + * Send a validation error response. + * + * @param mixed $errors + * @param string $message + * @return JsonResponse + */ + protected function respondValidationError(mixed $errors, string $message = 'Validation failed'): JsonResponse + { + return $this->respondError($message, $errors, 422); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/AuthController.php b/app/Components/Api/Http/Controllers/v1/AuthController.php new file mode 100644 index 0000000..de379fc --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/AuthController.php @@ -0,0 +1,34 @@ +validate([ + 'email' => 'required|email', + 'password' => 'required', + 'device_name' => 'required', + ]); + + $user = User::where('email', $request->email)->first(); + + if (! $user || ! Hash::check($request->password, $user->password)) { + throw ValidationException::withMessages([ + 'email' => ['The provided credentials are incorrect.'], + ]); + } + + return $this->respondSuccess([ + 'token' => $user->createToken($request->device_name)->plainTextToken, + 'user' => $user + ], 'Login successful'); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/Cafe/MenuController.php b/app/Components/Api/Http/Controllers/v1/Cafe/MenuController.php new file mode 100644 index 0000000..2625702 --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/Cafe/MenuController.php @@ -0,0 +1,15 @@ +respondSuccess( + ['message' => 'Hello from Cafe Menu System'], + 'Cafe module active' + ); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/Loyalty/LoyaltyController.php b/app/Components/Api/Http/Controllers/v1/Loyalty/LoyaltyController.php new file mode 100644 index 0000000..bec5f30 --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/Loyalty/LoyaltyController.php @@ -0,0 +1,15 @@ +respondSuccess( + ['message' => 'Hello from Loyalty System'], + 'Loyalty module active' + ); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/Management/ReportingController.php b/app/Components/Api/Http/Controllers/v1/Management/ReportingController.php new file mode 100644 index 0000000..9549a5a --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/Management/ReportingController.php @@ -0,0 +1,15 @@ +respondSuccess( + ['message' => 'Hello from Management Reporting'], + 'Reporting module active' + ); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/Sbux/SbuxController.php b/app/Components/Api/Http/Controllers/v1/Sbux/SbuxController.php new file mode 100644 index 0000000..07d0a2f --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/Sbux/SbuxController.php @@ -0,0 +1,15 @@ +respondSuccess( + ['message' => 'Hello from Sbux System'], + 'Sbux module active' + ); + } +} diff --git a/app/Components/Api/Http/Controllers/v1/Trading/DeskController.php b/app/Components/Api/Http/Controllers/v1/Trading/DeskController.php new file mode 100644 index 0000000..735ce72 --- /dev/null +++ b/app/Components/Api/Http/Controllers/v1/Trading/DeskController.php @@ -0,0 +1,15 @@ +respondSuccess( + ['message' => 'Hello from Trading Desk'], + 'Trading module active' + ); + } +} diff --git a/app/Components/Api/Http/Middleware/ApiVersioning.php b/app/Components/Api/Http/Middleware/ApiVersioning.php new file mode 100644 index 0000000..8f1a42a --- /dev/null +++ b/app/Components/Api/Http/Middleware/ApiVersioning.php @@ -0,0 +1,83 @@ +getVersionFromAcceptHeader($request) ?? + $request->header('X-API-Version') ?? + $defaultVersion; + + // Clean up version string (remove 'v' prefix if present) + $requestedVersion = ltrim(strtolower($requestedVersion), 'v'); + $requestedVersion = 'v' . $requestedVersion; + + // Check if requested version is supported + if (!in_array($requestedVersion, $supportedVersions)) { + return response()->json([ + 'success' => false, + 'message' => 'Unsupported API version', + 'meta' => [ + 'supported_versions' => $supportedVersions, + 'current_version' => $requestedVersion, + 'timestamp' => now()->toIso8601String(), + ] + ], 400); + } + + // Add version to request for use in controllers + $request->merge(['api_version' => $requestedVersion]); + + // Add version to route parameters + $request->route()->forgetParameter('version'); + $request->route()->setParameter('version', $requestedVersion); + + return $next($request); + } + + /** + * Extract version from Accept header. + * + * @param Request $request + * @return string|null + */ + protected function getVersionFromAcceptHeader(Request $request): ?string + { + $accept = $request->header('Accept'); + + if (!$accept) { + return null; + } + + // Match version in Accept header (application/vnd.api.v1+json) + if (preg_match('/application\/vnd\.api\.v(\d+)\+json/', $accept, $matches)) { + return 'v' . $matches[1]; + } + + return null; + } +} diff --git a/app/Components/Api/Providers/ApiServiceProvider.php b/app/Components/Api/Providers/ApiServiceProvider.php new file mode 100644 index 0000000..9736940 --- /dev/null +++ b/app/Components/Api/Providers/ApiServiceProvider.php @@ -0,0 +1,83 @@ +mergeConfigFrom( + __DIR__ . '/../config/api.php', 'api' + ); + + // Register our API routes + $this->registerRoutes(); + } + + /** + * Bootstrap any API services. + */ + public function boot(): void + { + // Load routes + if ($this->app->routesAreCached()) { + return; + } + + // Register middleware + $this->registerMiddleware(); + + // Load views if we add any later + $this->loadViewsFrom(__DIR__ . '/../resources/views', 'api'); + + // Load translations if we add any later + $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'api'); + + // Publish configuration if we add it + $this->publishes([ + __DIR__ . '/../config/api.php' => config_path('api.php'), + ], 'api-config'); + } + + /** + * Register the API routes. + */ + protected function registerRoutes(): void + { + Route::group([ + 'prefix' => 'api', + 'middleware' => ['api'], +// 'namespace' => 'App\Components\Api\Http\Controllers', + ], function () { + $this->loadRoutesFrom(__DIR__ . '/../routes/api.php'); + }); + + // Version-specific routes + Route::group([ + 'prefix' => 'api/v1', + 'middleware' => ['api', 'api.version:v1'], +// 'namespace' => 'App\Components\Api\Http\Controllers\v1', + ], function () { + $this->loadRoutesFrom(__DIR__ . '/../routes/v1/api.php'); + }); + } + + /** + * Register API middleware. + */ + protected function registerMiddleware(): void + { + $router = $this->app['router']; + + // Add our custom middleware + $router->aliasMiddleware('api.version', \App\Components\Api\Http\Middleware\ApiVersioning::class); + } +} diff --git a/app/Components/Api/config/api.php b/app/Components/Api/config/api.php new file mode 100644 index 0000000..7af0d77 --- /dev/null +++ b/app/Components/Api/config/api.php @@ -0,0 +1,35 @@ + [ + 'v1', + ], + + /* + |-------------------------------------------------------------------------- + | Default API Version + |-------------------------------------------------------------------------- + | + | The default API version to use when not specified + | + */ + 'default_version' => 'v1', + + /* + |-------------------------------------------------------------------------- + | Request ID Header + |-------------------------------------------------------------------------- + | + | The header key to use for the request ID + | + */ + 'request_id_header' => 'X-Request-ID', +]; diff --git a/app/Components/Api/routes/api.php b/app/Components/Api/routes/api.php new file mode 100644 index 0000000..e69de29 diff --git a/app/Components/Api/routes/v1/api.php b/app/Components/Api/routes/v1/api.php new file mode 100644 index 0000000..a6a58a6 --- /dev/null +++ b/app/Components/Api/routes/v1/api.php @@ -0,0 +1,9 @@ +name('api.login'); diff --git a/app/Components/Api/routes/v1/cafe.php b/app/Components/Api/routes/v1/cafe.php new file mode 100644 index 0000000..5160de1 --- /dev/null +++ b/app/Components/Api/routes/v1/cafe.php @@ -0,0 +1,9 @@ +group(function () { + Route::prefix('cafe')->group(function () { + Route::get('/hello', [MenuController::class, 'hello'])->name('cafe.hello'); + }); +}); diff --git a/app/Components/Api/routes/v1/loyalty.php b/app/Components/Api/routes/v1/loyalty.php new file mode 100644 index 0000000..0199bcd --- /dev/null +++ b/app/Components/Api/routes/v1/loyalty.php @@ -0,0 +1,9 @@ +group(function () { + Route::prefix('loyalty')->group(function () { + Route::get('/hello', [LoyaltyController::class, 'hello'])->name('loyalty.hello'); + }); +}); diff --git a/app/Components/Api/routes/v1/management.php b/app/Components/Api/routes/v1/management.php new file mode 100644 index 0000000..9407d95 --- /dev/null +++ b/app/Components/Api/routes/v1/management.php @@ -0,0 +1,9 @@ +group(function () { + Route::prefix('management')->group(function () { + Route::get('/hello', [ReportingController::class, 'hello'])->name('management.hello'); + }); +}); diff --git a/app/Components/Api/routes/v1/sbux.php b/app/Components/Api/routes/v1/sbux.php new file mode 100644 index 0000000..bd45b5c --- /dev/null +++ b/app/Components/Api/routes/v1/sbux.php @@ -0,0 +1,9 @@ +group(function () { + Route::prefix('sbux')->group(function () { + Route::get('/hello', [SbuxController::class, 'hello'])->name('sbux.hello'); + }); +}); diff --git a/app/Components/Api/routes/v1/trading.php b/app/Components/Api/routes/v1/trading.php new file mode 100644 index 0000000..01b0b6d --- /dev/null +++ b/app/Components/Api/routes/v1/trading.php @@ -0,0 +1,9 @@ +group(function () { + Route::prefix('trading')->group(function () { + Route::get('/hello', [DeskController::class, 'hello'])->name('desk.hello'); + }); +}); diff --git a/app/Components/DataExtraction/Contracts/DataSourceInterface.php b/app/Components/DataExtraction/Contracts/DataSourceInterface.php new file mode 100644 index 0000000..f849e4d --- /dev/null +++ b/app/Components/DataExtraction/Contracts/DataSourceInterface.php @@ -0,0 +1,31 @@ +app->bind(ExtractorInterface::class, CsvExtractor::class); + + // Register our CSV extractor specifically + $this->app->bind('extractor.csv', function ($app) { + return new CsvExtractor(); + }); + } + + /** + * Bootstrap any application services. + */ + public function boot(): void + { + // + } +} diff --git a/app/Components/DataExtraction/Services/Extractors/CsvDataSource.php b/app/Components/DataExtraction/Services/Extractors/CsvDataSource.php new file mode 100644 index 0000000..30e002f --- /dev/null +++ b/app/Components/DataExtraction/Services/Extractors/CsvDataSource.php @@ -0,0 +1,69 @@ +file = new SplFileInfo($this->filePath); + + if (!$this->file->isReadable() || $this->file->getExtension() !== 'csv') { + throw new ConnectionException("File is not readable or is not a CSV file"); + } + + $this->isConnected = true; + return true; + + } catch (\Exception $e) { + $this->isConnected = false; + throw new ConnectionException("Failed to connect to CSV source: {$e->getMessage()}"); + } + } + + public function disconnect(): void + { + $this->file = null; + $this->isConnected = false; + } + + public function isConnected(): bool + { + return $this->isConnected; + } + + public function getSourceType(): string + { + return 'csv'; + } + + public function getSourceIdentifier(): string + { + return $this->identifier; + } + + public function getFile(): ?SplFileInfo + { + return $this->file; + } +} diff --git a/app/Components/DataExtraction/Services/Extractors/CsvExtractor.php b/app/Components/DataExtraction/Services/Extractors/CsvExtractor.php new file mode 100644 index 0000000..a66f370 --- /dev/null +++ b/app/Components/DataExtraction/Services/Extractors/CsvExtractor.php @@ -0,0 +1,165 @@ +resetState(); + + if (!$this->supports($source)) { + throw new ExtractionException("Unsupported data source type"); + } + + if (!$source->isConnected()) { + $source->connect(); + } + + /** @var CsvDataSource $source */ + $file = $source->getFile(); + + try { + $handle = fopen($file->getRealPath(), 'r'); + if ($handle === false) { + throw new ExtractionException("Could not open file for reading"); + } + + // Read and validate headers + $this->headers = $this->readHeaders($handle); + if (empty($this->headers)) { + throw new ExtractionException("No headers found in CSV file"); + } + + $data = $this->processRows($handle); + fclose($handle); + $this->lastExtraction = $data; + return $data; + } catch (\Exception $e) { + if (isset($handle) && is_resource($handle)) { + fclose($handle); + } + throw new ExtractionException("Failed to extract CSV data: {$e->getMessage()}"); + } + } + + private function readHeaders($handle): array + { + $headers = fgetcsv($handle); + if (!$headers) { + return []; + } + // Clean up headers (trim whitespace, remove empty columns) + return array_map( + fn($header) => trim($header), + array_filter($headers, fn($header) => !empty(trim($header))) + ); + } + +// if ($headers === false) { +// throw new ExtractionException("Could not read CSV headers"); +// } +// +// $data = []; +// while (($row = fgetcsv($handle)) !== false) { +// // Combine headers with row data +// $data[] = array_combine($headers, $row); +// } +// +// fclose($handle); +// +// $this->lastExtraction = $data; +// return $data; +// +// } catch (\Exception $e) { +// throw new ExtractionException("Failed to extract CSV data: {$e->getMessage()}"); +// } +// } + + + private function processRows($handle): array + { + $data = []; + $rowNumber = 1; + + while (($row = fgetcsv($handle)) !== false) { + $rowNumber++; + // Handle row having different number of columns than headers + if(count($row) !== count($this->headers)) { + $this->addError( + $rowNumber, + "Row has " . count($row) . "columns, expected " . count($this->headers) + ); + // Pad or truncate row to match header count + if (count($row) < count($this->headers)) { + $row = array_pad($row, count($this->headers), null); + } else { + $row = array_slice($row, 0, count($this->headers)); + } + } + // Clean row data + $row = array_map(fn($value) => $this->cleanValue($value), $row); + // Combine with headers + $rowData = array_combine($this->headers, $row); + $data[] = $rowData; + } + return $data; + } + + private function cleanValue(?string $value): ?string + { + if ($value === null) { + return null; + } + $value = trim($value); + return $value === '' ? null : $value; + } + + private function addError(int $row, string $message): void + { + $this->extractionErrors[] = [ + 'row' => $row, + 'message' => $message, + 'timestamp' => now() + ]; + } + + private function resetState(): void + { + $this->extractionErrors = []; + $this->headers = null; + } + + public function getExtractionErrors(): array + { + return $this->extractionErrors; + } + + public function supports(DataSourceInterface $source): bool + { + return $source instanceof CsvDataSource && $source->getSourceType() === 'csv'; + } + + public function getLastExtraction(): ?array + { + return $this->lastExtraction; + } + + public function getExtractorName(): string + { + return 'csv_extractor'; + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..e6b9960 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,27 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + */ + protected function commands(): void + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..56af264 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,30 @@ + + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + */ + public function register(): void + { + $this->reportable(function (Throwable $e) { + // + }); + } +} diff --git a/app/Helpers/IconHelper.php b/app/Helpers/IconHelper.php new file mode 100644 index 0000000..2eab445 --- /dev/null +++ b/app/Helpers/IconHelper.php @@ -0,0 +1,75 @@ + 'gauge', + 'users' => 'users', + 'settings' => 'cog', + 'reports' => 'chart-bar', + 'menu' => 'bars', + 'resources' => 'folder', + 'navigation' => 'compass', + 'roles' => 'user-shield', + 'permissions' => 'key', + 'stores' => 'store', + 'pages' => 'file', + 'types' => 'tags', + 'list' => 'list', + 'home' => 'home', + 'database' => 'database', + 'server' => 'server', + 'business' => 'globe', + ]; + + /** + * Get the full icon class string + */ + public static function getIconClasses(?string $icon = null): string + { + if (empty($icon)) { + return ''; + } + + // Check if it's a common icon name + if (isset(self::$commonIcons[$icon])) { + return 'fas fa-' . self::$commonIcons[$icon]; + } + + // If it's a direct FA icon name, use it + return 'fas fa-' . $icon; + } + + /** + * Get list of common icons for the form selection + */ + public static function getCommonIcons(): array + { + $icons = []; + foreach (self::$commonIcons as $name => $icon) { + $icons[$name] = [ + 'name' => ucfirst($name), + 'value' => $name, + 'classes' => self::getIconClasses($name) + ]; + } + return $icons; + } + + /** + * Check if an icon name is valid + */ + public static function isValidIcon(?string $icon): bool + { + if (empty($icon)) { + return true; + } + + return isset(self::$commonIcons[$icon]); + } +} diff --git a/app/Helpers/RouteHelper.php b/app/Helpers/RouteHelper.php new file mode 100644 index 0000000..3fcd24c --- /dev/null +++ b/app/Helpers/RouteHelper.php @@ -0,0 +1,93 @@ +getName()) { + // Only include admin routes and ensure they're appropriate for navigation + if (!Str::startsWith($name, 'admin.') || !self::shouldIncludeRoute($name, $route)) { + continue; + } + + // Get the section name (e.g., 'users' from 'admin.users.index') + $segments = explode('.', $name); + $group = $segments[1] ?? 'other'; + + $namedRoutes[$group][] = [ + 'name' => $name, + 'uri' => $route->uri(), + 'methods' => $route->methods()[0] ?? '', // Usually GET for navigation + ]; + } + } + + // Sort groups and routes alphabetically + ksort($namedRoutes); + foreach ($namedRoutes as &$routes) { + usort($routes, function ($a, $b) { + return strcmp($a['name'], $b['name']); + }); + } + + return $namedRoutes; + } + + /** + * Determine if a route should be included in the navigation options. + * + * @param string $routeName + * @param \Illuminate\Routing\Route $route + * @return bool + */ + private static function shouldIncludeRoute(string $routeName, $route): bool + { + // Only include index and show routes + // Exclude CRUD operation routes that shouldn't be in navigation + $excludedPatterns = [ + '*.create', + '*.store', + '*.edit', + '*.update', + '*.destroy', + '*.io', + '*.columns', + '*.tables', + '*.api.*' + ]; + + // Check if route matches any excluded pattern + foreach ($excludedPatterns as $pattern) { + if (Str::is($pattern, $routeName)) { + return false; + } + } + + // Check for route parameters in URI + $uri = $route->uri(); + if (preg_match('/{.*}/', $uri)) { + return false; + } + + // Only allow GET routes for navigation + if (!in_array('GET', $route->methods())) { + return false; + } + + return true; + } +} diff --git a/app/Helpers/Timer.php b/app/Helpers/Timer.php new file mode 100644 index 0000000..3e6de1b --- /dev/null +++ b/app/Helpers/Timer.php @@ -0,0 +1,45 @@ +startTimer(); + } + + public function startTimer() + { + $this->start = time(); + } + + public function endTimer() + { + $this->end = time(); + } + + public function getStartTime() + { + return $this->start; + } + + public function getEndTime() + { + return $this->end; + } + + + + public function getElapsedTime() + { + $this->endTimer(); + $taskTime = number_format((float)(($this->end - $this->start) / 60),2,'.',''); + return $taskTime; + } + + +} diff --git a/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/app/Http/Controllers/Auth/AuthenticatedSessionController.php new file mode 100644 index 0000000..be70707 --- /dev/null +++ b/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -0,0 +1,49 @@ +authenticate(); + + $request->session()->regenerate(); + +// return redirect()->intended(route('dashboard', absolute: false)); + return redirect()->intended(RouteServiceProvider::HOME); + } + + /** + * Destroy an authenticated session. + */ + public function destroy(Request $request): RedirectResponse + { + Auth::guard('web')->logout(); + + $request->session()->invalidate(); + + $request->session()->regenerateToken(); + + return redirect('/'); + } +} diff --git a/app/Http/Controllers/Auth/ConfirmablePasswordController.php b/app/Http/Controllers/Auth/ConfirmablePasswordController.php new file mode 100644 index 0000000..712394a --- /dev/null +++ b/app/Http/Controllers/Auth/ConfirmablePasswordController.php @@ -0,0 +1,40 @@ +validate([ + 'email' => $request->user()->email, + 'password' => $request->password, + ])) { + throw ValidationException::withMessages([ + 'password' => __('auth.password'), + ]); + } + + $request->session()->put('auth.password_confirmed_at', time()); + + return redirect()->intended(route('dashboard', absolute: false)); + } +} diff --git a/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php new file mode 100644 index 0000000..f64fa9b --- /dev/null +++ b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -0,0 +1,24 @@ +user()->hasVerifiedEmail()) { + return redirect()->intended(route('dashboard', absolute: false)); + } + + $request->user()->sendEmailVerificationNotification(); + + return back()->with('status', 'verification-link-sent'); + } +} diff --git a/app/Http/Controllers/Auth/EmailVerificationPromptController.php b/app/Http/Controllers/Auth/EmailVerificationPromptController.php new file mode 100644 index 0000000..ee3cb6f --- /dev/null +++ b/app/Http/Controllers/Auth/EmailVerificationPromptController.php @@ -0,0 +1,21 @@ +user()->hasVerifiedEmail() + ? redirect()->intended(route('dashboard', absolute: false)) + : view('auth.verify-email'); + } +} diff --git a/app/Http/Controllers/Auth/NewPasswordController.php b/app/Http/Controllers/Auth/NewPasswordController.php new file mode 100644 index 0000000..e8368bd --- /dev/null +++ b/app/Http/Controllers/Auth/NewPasswordController.php @@ -0,0 +1,62 @@ + $request]); + } + + /** + * Handle an incoming new password request. + * + * @throws \Illuminate\Validation\ValidationException + */ + public function store(Request $request): RedirectResponse + { + $request->validate([ + 'token' => ['required'], + 'email' => ['required', 'email'], + 'password' => ['required', 'confirmed', Rules\Password::defaults()], + ]); + + // Here we will attempt to reset the user's password. If it is successful we + // will update the password on an actual user model and persist it to the + // database. Otherwise we will parse the error and return the response. + $status = Password::reset( + $request->only('email', 'password', 'password_confirmation', 'token'), + function (User $user) use ($request) { + $user->forceFill([ + 'password' => Hash::make($request->password), + 'remember_token' => Str::random(60), + ])->save(); + + event(new PasswordReset($user)); + } + ); + + // If the password was successfully reset, we will redirect the user back to + // the application's home authenticated view. If there is an error we can + // redirect them back to where they came from with their error message. + return $status == Password::PASSWORD_RESET + ? redirect()->route('login')->with('status', __($status)) + : back()->withInput($request->only('email')) + ->withErrors(['email' => __($status)]); + } +} diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/PasswordController.php new file mode 100644 index 0000000..6916409 --- /dev/null +++ b/app/Http/Controllers/Auth/PasswordController.php @@ -0,0 +1,29 @@ +validateWithBag('updatePassword', [ + 'current_password' => ['required', 'current_password'], + 'password' => ['required', Password::defaults(), 'confirmed'], + ]); + + $request->user()->update([ + 'password' => Hash::make($validated['password']), + ]); + + return back()->with('status', 'password-updated'); + } +} diff --git a/app/Http/Controllers/Auth/PasswordResetLinkController.php b/app/Http/Controllers/Auth/PasswordResetLinkController.php new file mode 100644 index 0000000..bf1ebfa --- /dev/null +++ b/app/Http/Controllers/Auth/PasswordResetLinkController.php @@ -0,0 +1,44 @@ +validate([ + 'email' => ['required', 'email'], + ]); + + // We will send the password reset link to this user. Once we have attempted + // to send the link, we will examine the response then see the message we + // need to show to the user. Finally, we'll send out a proper response. + $status = Password::sendResetLink( + $request->only('email') + ); + + return $status == Password::RESET_LINK_SENT + ? back()->with('status', __($status)) + : back()->withInput($request->only('email')) + ->withErrors(['email' => __($status)]); + } +} diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php new file mode 100644 index 0000000..0739e2e --- /dev/null +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -0,0 +1,50 @@ +validate([ + 'name' => ['required', 'string', 'max:255'], + 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class], + 'password' => ['required', 'confirmed', Rules\Password::defaults()], + ]); + + $user = User::create([ + 'name' => $request->name, + 'email' => $request->email, + 'password' => Hash::make($request->password), + ]); + + event(new Registered($user)); + + Auth::login($user); + + return redirect(route('dashboard', absolute: false)); + } +} diff --git a/app/Http/Controllers/Auth/VerifyEmailController.php b/app/Http/Controllers/Auth/VerifyEmailController.php new file mode 100644 index 0000000..784765e --- /dev/null +++ b/app/Http/Controllers/Auth/VerifyEmailController.php @@ -0,0 +1,27 @@ +user()->hasVerifiedEmail()) { + return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); + } + + if ($request->user()->markEmailAsVerified()) { + event(new Verified($request->user())); + } + + return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..77ec359 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,12 @@ + $request->user(), + ]); + } + + /** + * Update the user's profile information. + */ + public function update(ProfileUpdateRequest $request): RedirectResponse + { + $request->user()->fill($request->validated()); + + if ($request->user()->isDirty('email')) { + $request->user()->email_verified_at = null; + } + + $request->user()->save(); + + return Redirect::route('profile.edit')->with('status', 'profile-updated'); + } + + /** + * Delete the user's account. + */ + public function destroy(Request $request): RedirectResponse + { + $request->validateWithBag('userDeletion', [ + 'password' => ['required', 'current_password'], + ]); + + $user = $request->user(); + + Auth::logout(); + + $user->delete(); + + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + return Redirect::to('/'); + } +} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php new file mode 100644 index 0000000..a650676 --- /dev/null +++ b/app/Http/Kernel.php @@ -0,0 +1,71 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, + \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * The application's middleware aliases. + * + * Aliases may be used instead of class names to conveniently assign middleware to routes and groups. + * + * @var array + */ + protected $middlewareAliases = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, + 'precognitive' => \Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + 'api.version' => \App\Components\Api\Http\Middleware\ApiVersioning::class, +// 'resource.access' => Middleware\ResourceAccess::class, + 'resource.access' => \App\Http\Middleware\ResourceAccess::class, + ]; +} diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000..d4ef644 --- /dev/null +++ b/app/Http/Middleware/Authenticate.php @@ -0,0 +1,17 @@ +expectsJson() ? null : route('login'); + } +} diff --git a/app/Http/Middleware/BaseAuthentication.php b/app/Http/Middleware/BaseAuthentication.php new file mode 100644 index 0000000..fd894f2 --- /dev/null +++ b/app/Http/Middleware/BaseAuthentication.php @@ -0,0 +1,22 @@ +route($this->getLoginRoute()); + } + + return $next($request); + } + + // Allow components to specify their login route + abstract protected function getLoginRoute(): string; +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..867695b --- /dev/null +++ b/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..74cbd9a --- /dev/null +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..afc78c4 --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,30 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/ResourceAccess.php b/app/Http/Middleware/ResourceAccess.php new file mode 100644 index 0000000..db96850 --- /dev/null +++ b/app/Http/Middleware/ResourceAccess.php @@ -0,0 +1,69 @@ + auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue, + 'url' => $request->url() + ]); + + $hasAccess = DB::table('auth.vw_user_authorizations') + ->where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('resource_value', $resourceValue) + ->exists(); + + // Add query logging + Log::info('Access Query Result', [ + 'hasAccess' => $hasAccess, + 'query' => DB::table('auth.vw_user_authorizations') + ->where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('resource_value', $resourceValue) + ->toSql(), + 'bindings' => [ + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue + ] + ]); + + if (!$hasAccess) { + Log::warning('Unauthorized resource access attempt', [ + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue, + 'url' => $request->url() + ]); + + abort(403, 'Unauthorized to access this resource'); + } + + return $next($request); + + } catch (\Exception $e) { + Log::error('Error in resource access middleware', [ + 'message' => $e->getMessage(), + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue + ]); + + abort(403, 'Unable to verify resource access'); + } + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..88cadca --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..c9c58bd --- /dev/null +++ b/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,20 @@ + + */ + public function hosts(): array + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000..3391630 --- /dev/null +++ b/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..093bf64 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..9e86521 --- /dev/null +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Requests/Auth/LoginRequest.php b/app/Http/Requests/Auth/LoginRequest.php new file mode 100644 index 0000000..2574642 --- /dev/null +++ b/app/Http/Requests/Auth/LoginRequest.php @@ -0,0 +1,85 @@ +|string> + */ + public function rules(): array + { + return [ + 'email' => ['required', 'string', 'email'], + 'password' => ['required', 'string'], + ]; + } + + /** + * Attempt to authenticate the request's credentials. + * + * @throws \Illuminate\Validation\ValidationException + */ + public function authenticate(): void + { + $this->ensureIsNotRateLimited(); + + if (! Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) { + RateLimiter::hit($this->throttleKey()); + + throw ValidationException::withMessages([ + 'email' => trans('auth.failed'), + ]); + } + + RateLimiter::clear($this->throttleKey()); + } + + /** + * Ensure the login request is not rate limited. + * + * @throws \Illuminate\Validation\ValidationException + */ + public function ensureIsNotRateLimited(): void + { + if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { + return; + } + + event(new Lockout($this)); + + $seconds = RateLimiter::availableIn($this->throttleKey()); + + throw ValidationException::withMessages([ + 'email' => trans('auth.throttle', [ + 'seconds' => $seconds, + 'minutes' => ceil($seconds / 60), + ]), + ]); + } + + /** + * Get the rate limiting throttle key for the request. + */ + public function throttleKey(): string + { + return Str::transliterate(Str::lower($this->string('email')).'|'.$this->ip()); + } +} diff --git a/app/Http/Requests/ProfileUpdateRequest.php b/app/Http/Requests/ProfileUpdateRequest.php new file mode 100644 index 0000000..3622a8f --- /dev/null +++ b/app/Http/Requests/ProfileUpdateRequest.php @@ -0,0 +1,30 @@ +|string> + */ + public function rules(): array + { + return [ + 'name' => ['required', 'string', 'max:255'], + 'email' => [ + 'required', + 'string', + 'lowercase', + 'email', + 'max:255', + Rule::unique(User::class)->ignore($this->user()->id), + ], + ]; + } +} diff --git a/app/Models/MenuType.php b/app/Models/MenuType.php new file mode 100644 index 0000000..27631f6 --- /dev/null +++ b/app/Models/MenuType.php @@ -0,0 +1,94 @@ + + */ + protected $fillable = [ + 'name', + 'description', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'id' => 'integer', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime', + ]; + + /** + * Scope a query to search menu types by name or description. + * + * @param Builder $query + * @param string|null $search + * @return Builder + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } + + /** + * Scope a query to order menu types. + * + * @param Builder $query + * @param string $column + * @param string $direction + * @return Builder + */ + public function scopeSort(Builder $query, string $column = 'name', string $direction = 'asc'): Builder + { + $validColumns = ['name', 'created_at', 'updated_at']; + $column = in_array($column, $validColumns) ? $column : 'name'; + $direction = in_array(strtolower($direction), ['asc', 'desc']) ? $direction : 'asc'; + + return $query->orderBy($column, $direction); + } + + /** + * Get the navigation items associated with this menu type. + * + * @return HasMany + */ + public function navigationItems(): HasMany + { + return $this->hasMany(NavigationItem::class, 'menu_type_id'); + } +} diff --git a/app/Models/Migration.php b/app/Models/Migration.php new file mode 100644 index 0000000..9d9cbf2 --- /dev/null +++ b/app/Models/Migration.php @@ -0,0 +1,81 @@ + + */ + protected $fillable = [ + 'migration', + 'batch' + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'batch' => 'integer', + ]; + + /** + * Scope a query to search migrations. + * + * @param \Illuminate\Database\Eloquent\Builder $query + * @param string|null $search + * @return \Illuminate\Database\Eloquent\Builder + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereRaw('LOWER(public.migrations.migration) LIKE ?', [$search]); + }); + }); + } + + /** + * Format the migration name for display. + * + * @return string + */ + public function getFormattedNameAttribute(): string + { + // Convert migration filename to a more readable format + // Example: "2024_01_23_create_users_table" becomes "Create Users Table" + $name = str_replace('.php', '', $this->migration); + $name = preg_replace('/^\d{4}_\d{2}_\d{2}_/', '', $name); + $name = str_replace('_', ' ', $name); + return ucwords($name); + } +} diff --git a/app/Models/NavigationItem.php b/app/Models/NavigationItem.php new file mode 100644 index 0000000..a3a3ca6 --- /dev/null +++ b/app/Models/NavigationItem.php @@ -0,0 +1,104 @@ + 'integer', + 'menu_type_id' => 'integer', + 'parent_id' => 'integer', + 'order_index' => 'integer', + 'is_active' => 'boolean', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + /** + * Get the menu type that owns the navigation item. + */ + public function menuType(): BelongsTo + { + return $this->belongsTo(MenuType::class, 'menu_type_id'); + } + + /** + * Get the parent navigation item. + */ + public function parent(): BelongsTo + { + return $this->belongsTo(NavigationItem::class, 'parent_id'); + } + + /** + * Get the child navigation items. + */ + public function children(): HasMany + { + return $this->hasMany(NavigationItem::class, 'parent_id'); + } + + /** + * Scope a query to search navigation items. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(route) LIKE ?', [$search]); + }); + }); + } + + /** + * Scope a query to filter by menu type. + */ + public function scopeByMenuType(Builder $query, ?int $menuTypeId): Builder + { + return $query->when($menuTypeId, function ($query) use ($menuTypeId) { + return $query->where('menu_type_id', $menuTypeId); + }); + } + + /** + * Scope a query to filter by active status. + */ + public function scopeActive(Builder $query, ?bool $active = true): Builder + { + return $query->where('is_active', $active); + } + + /** + * Scope a query to order by menu type and order index. + */ + public function scopeOrdered(Builder $query): Builder + { + return $query->orderBy('menu_type_id') + ->orderBy('order_index'); + } +} diff --git a/app/Models/Permission.php b/app/Models/Permission.php new file mode 100644 index 0000000..ad61e72 --- /dev/null +++ b/app/Models/Permission.php @@ -0,0 +1,54 @@ + 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime', + ]; + + /** + * The roles that belong to the permission. + */ + public function roles() + { + return $this->belongsToMany( + Role::class, + 'auth.role_permissions', + 'permission_id', + 'role_id' + )->withTimestamps(); + } + + /** + * Scope a query to search permissions. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } +} diff --git a/app/Models/ResourceAssociation.php b/app/Models/ResourceAssociation.php new file mode 100644 index 0000000..c74939a --- /dev/null +++ b/app/Models/ResourceAssociation.php @@ -0,0 +1,91 @@ + 'integer', + 'resource_type_id' => 'integer', + 'role_id' => 'integer', + 'resource_id' => 'integer', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + /** + * Get the user that owns the resource association. + */ + public function user() + { + return $this->belongsTo(User::class); + } + + /** + * Get the resource type that owns the resource association. + */ + public function resourceType() + { + return $this->belongsTo(ResourceType::class); + } + + /** + * Get the role that owns the resource association. + */ + public function role() + { + return $this->belongsTo(Role::class); + } + + /** + * Scope a query to search resource associations. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereHas('user', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + }) + ->orWhereHas('resourceType', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + }) + ->orWhereHas('role', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + }) + ->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } + + /** + * Scope a query to sort resource associations. + */ + public function scopeSort(Builder $query, ?string $column = 'created_at', ?string $direction = 'desc'): Builder + { + $validColumns = ['created_at', 'updated_at']; + $column = in_array($column, $validColumns) ? $column : 'created_at'; + $direction = in_array(strtolower($direction), ['asc', 'desc']) ? $direction : 'desc'; + + return $query->orderBy($column, $direction); + } +} diff --git a/app/Models/ResourceType.php b/app/Models/ResourceType.php new file mode 100644 index 0000000..ede2be9 --- /dev/null +++ b/app/Models/ResourceType.php @@ -0,0 +1,38 @@ + 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } +} diff --git a/app/Models/ResourceTypeMapping.php b/app/Models/ResourceTypeMapping.php new file mode 100644 index 0000000..24aaf98 --- /dev/null +++ b/app/Models/ResourceTypeMapping.php @@ -0,0 +1,124 @@ + + */ + protected $fillable = [ + 'resource_type_id', + 'table_schema', + 'table_name', + 'resource_value_column', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime', + ]; + + /** + * Get the resource type that owns the mapping. + */ + public function resourceType(): BelongsTo + { + return $this->belongsTo(ResourceType::class, 'resource_type_id'); + } + + /** + * Scope a query to search mappings. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereRaw('LOWER(table_schema) LIKE ?', [$search]) + ->orWhereRaw('LOWER(table_name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(resource_value_column) LIKE ?', [$search]) + ->orWhereHas('resourceType', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + }); + }); + }); + } + + /** + * Get the fully qualified table name. + */ + public function getFullTableName(): string + { + return "{$this->table_schema}.{$this->table_name}"; + } + + /** + * Scope a query to filter by schema. + */ + public function scopeBySchema(Builder $query, ?string $schema): Builder + { + return $query->when($schema, function ($query) use ($schema) { + return $query->where('table_schema', $schema); + }); + } + + /** + * Scope a query to filter by table. + */ + public function scopeByTable(Builder $query, ?string $table): Builder + { + return $query->when($table, function ($query) use ($table) { + return $query->where('table_name', $table); + }); + } + + /** + * Scope a query to order by the specified column. + */ + public function scopeOrdered(Builder $query, ?string $column = 'table_schema', ?string $direction = 'asc'): Builder + { + $validColumns = ['table_schema', 'table_name', 'resource_value_column', 'created_at']; + + $column = in_array($column, $validColumns) ? $column : 'table_schema'; + $direction = in_array(strtolower($direction), ['asc', 'desc']) ? $direction : 'asc'; + + return $query->orderBy($column, $direction); + } +} diff --git a/app/Models/Role.php b/app/Models/Role.php new file mode 100644 index 0000000..56c8522 --- /dev/null +++ b/app/Models/Role.php @@ -0,0 +1,65 @@ + 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + /** + * The users that belong to the role. + */ + public function users() + { + return $this->belongsToMany( + User::class, + 'auth.tbl_user_roles', + 'role_id', + 'user_id' + )->withTimestamps() + ->withPivot('description'); + } + + /** + * The permissions that belong to the role. + */ + public function permissions() + { + return $this->belongsToMany( + Permission::class, + 'auth.role_permissions', + 'role_id', + 'permission_id' + )->withTimestamps(); + } + + /** + * Scope a query to search roles by name. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->whereRaw('LOWER(name) LIKE ?', [$search]); + }); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..c564c3c --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,154 @@ + + */ + protected $fillable = [ + 'name', + 'email', + 'password', + 'active', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var array + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + 'active' => 'boolean', + ]; + + /** + * The roles that belong to the user. + */ + public function roles(): BelongsToMany + { + return $this->belongsToMany( + Role::class, + 'auth.tbl_user_roles', + 'user_id', + 'role_id' + )->withTimestamps() + ->withPivot('description'); + } + + /** + * Check if the user has a specific role + */ + public function hasRole(string $roleName): bool + { + return $this->roles() + ->where('name', $roleName) + ->exists(); + } + + /** + * Check if the user has any of the specified roles + */ + public function hasAnyRole(array $roleNames): bool + { + return $this->roles() + ->whereIn('name', $roleNames) + ->exists(); + } + + /** + * Scope a query to filter users by search term. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + Log::info('Search scope called with:', ['search' => $search]); + + return $query->when($search, function (Builder $query) use ($search): Builder { + $search = '%' . strtolower($search) . '%'; + return $query->where(function (Builder $query) use ($search): Builder { + return $query->whereRaw('LOWER(name) LIKE ?', [$search]) + ->orWhereRaw('LOWER(email) LIKE ?', [$search]); + }); + }); + } + + /** + * Scope a query to filter users by active status. + */ + public function scopeFilterByStatus(Builder $query, ?string $status): Builder + { + Log::info('Filter status scope called with:', ['status' => $status]); + + return $query->when($status !== null, function (Builder $query) use ($status): Builder { + return $query->where('active', $status === 'active'); + }); + } + + /** + * Get the user's full name or email if name is not set. + */ + public function getDisplayNameAttribute(): string + { + return $this->name ?: $this->email; + } + + /** + * Check if the user is active. + */ + public function isActive(): bool + { + return $this->active; + } + + /** + * Scope a query to only include active users. + */ + public function scopeActive(Builder $query): Builder + { + return $query->where('active', true); + } + + /** + * Scope a query to only include inactive users. + */ + public function scopeInactive(Builder $query): Builder + { + return $query->where('active', false); + } +} diff --git a/app/Models/UserRole.php b/app/Models/UserRole.php new file mode 100644 index 0000000..c34628a --- /dev/null +++ b/app/Models/UserRole.php @@ -0,0 +1,88 @@ + 'integer', + 'role_id' => 'integer', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + /** + * Get the user that owns this role assignment. + */ + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + /** + * Get the role for this assignment. + */ + public function role(): BelongsTo + { + return $this->belongsTo(Role::class); + } + + /** + * Scope for searching user roles. + */ + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function ($query) use ($search) { + $query->whereHas('user', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + })->orWhereHas('role', function ($query) use ($search) { + $query->whereRaw('LOWER(name) LIKE ?', [$search]); + })->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } + + /** + * Scope for sorting user roles. + */ + public function scopeSort(Builder $query, string $column = 'created_at', string $direction = 'desc'): Builder + { + $validColumns = ['created_at', 'updated_at']; + $direction = in_array(strtolower($direction), ['asc', 'desc']) ? $direction : 'desc'; + + // Handle relationship sorting + if ($column === 'user_name') { + return $query->orderBy(User::select('name') + ->whereColumn('users.id', 'auth.tbl_user_roles.user_id') + ->limit(1), $direction); + } + + if ($column === 'role_name') { + return $query->orderBy(Role::select('name') + ->whereColumn('auth.tbl_roles.id', 'auth.tbl_user_roles.role_id') + ->limit(1), $direction); + } + + $column = in_array($column, $validColumns) ? $column : 'created_at'; + return $query->orderBy($column, $direction); + } +} diff --git a/app/Models/WebPage.php b/app/Models/WebPage.php new file mode 100644 index 0000000..9cf8c2e --- /dev/null +++ b/app/Models/WebPage.php @@ -0,0 +1,37 @@ + 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime' + ]; + + public function scopeSearch(Builder $query, ?string $search): Builder + { + return $query->when($search, function ($query) use ($search) { + $search = '%' . strtolower($search) . '%'; + return $query->where(function($query) use ($search) { + $query->whereRaw('LOWER(url) LIKE ?', [$search]) + ->orWhereRaw('LOWER(description) LIKE ?', [$search]); + }); + }); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..ff95c52 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,31 @@ +sql, + $query->bindings, + $query->time + ); + }); } +} diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php new file mode 100644 index 0000000..54756cd --- /dev/null +++ b/app/Providers/AuthServiceProvider.php @@ -0,0 +1,26 @@ + + */ + protected $policies = [ + // + ]; + + /** + * Register any authentication / authorization services. + */ + public function boot(): void + { + // + } +} diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..2be04f5 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,19 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + */ + public function boot(): void + { + // + } + + /** + * Determine if events and listeners should be automatically discovered. + */ + public function shouldDiscoverEvents(): bool + { + return false; + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..6363bc3 --- /dev/null +++ b/app/Providers/RouteServiceProvider.php @@ -0,0 +1,41 @@ +by($request->user()?->id ?: $request->ip()); + }); + + $this->routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } +} diff --git a/app/Traits/WebPageAuthorization.php b/app/Traits/WebPageAuthorization.php new file mode 100644 index 0000000..a69c7f8 --- /dev/null +++ b/app/Traits/WebPageAuthorization.php @@ -0,0 +1,78 @@ +id(); + + return Cache::remember($cacheKey, now()->addMinutes(0), function() use ($resourceType, $resourceValue, $permission) { + try { + return DB::table('auth.vw_user_authorizations') + ->where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('resource_value', $resourceValue) + ->where('permission_name', $permission) + ->exists(); + } catch (\Exception $e) { + Log::error('Authorization check failed', [ + 'error' => $e->getMessage(), + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue, + 'permission' => $permission + ]); + return false; + } + }); + } + + + /** + * Get all resources of a specific type that the user has permission to access + * + * @param string $resourceType + * @param string $resourceValue + * @param string $permission + * @return array + */ + public function getAuthorizedResourceIds(string $resourceType, string $resourceValue, string $permission): array + { + try { + return DB::table('auth.vw_user_authorizations') + ->where('user_id', auth()->id()) + ->where('resource_type', $resourceType) + ->where('resource_value', $resourceValue) + ->where('permission_name', $permission) + ->pluck('resource_id') + ->filter() + ->toArray(); + + } catch (\Exception $e) { + Log::error('Failed to get authorized resource IDs', [ + 'error' => $e->getMessage(), + 'user_id' => auth()->id(), + 'resource_type' => $resourceType, + 'resource_value' => $resourceValue, + 'permission' => $permission + ]); + + return []; + } + } +} diff --git a/app/View/Components/AppLayout.php b/app/View/Components/AppLayout.php new file mode 100644 index 0000000..de0d46f --- /dev/null +++ b/app/View/Components/AppLayout.php @@ -0,0 +1,17 @@ +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a18ae94 --- /dev/null +++ b/composer.json @@ -0,0 +1,68 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The skeleton application for the Laravel framework.", + "keywords": ["laravel", "framework"], + "license": "MIT", + "require": { + "php": "^8.3", + "guzzlehttp/guzzle": "^7.2", + "laravel/breeze": "^2.0", + "laravel/framework": "^11.0", + "laravel/sanctum": "^4.0", + "laravel/tinker": "^2.8" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/pint": "^1.0", + "laravel/sail": "^1.18", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^8.0", + "phpunit/phpunit": "^10.1", + "spatie/laravel-ignition": "^2.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/", + "App\\Components\\": "app/Components/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "php-http/discovery": true + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..dcefe0d --- /dev/null +++ b/composer.lock @@ -0,0 +1,8451 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "ab897b3dcc00dcc246bce74d71656df0", + "packages": [ + { + "name": "brick/math", + "version": "0.12.1", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "f510c0a40911935b77b86859eb5223d58d660df1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/f510c0a40911935b77b86859eb5223d58d660df1", + "reference": "f510c0a40911935b77b86859eb5223d58d660df1", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "5.16.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "bignumber", + "brick", + "decimal", + "integer", + "math", + "mathematics", + "rational" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.12.1" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2023-11-29T23:19:16+00:00" + }, + { + "name": "carbonphp/carbon-doctrine-types", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "conflict": { + "doctrine/dbal": "<4.0.0 || >=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.10", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^11.0", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.10" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2024-02-18T20:23:39+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "8c784d071debd117328803d86b2097615b457500" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/8c784d071debd117328803d86b2097615b457500", + "reference": "8c784d071debd117328803d86b2097615b457500", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.4.0" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2024-10-09T13:47:03+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.3", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "b115554301161fa21467629f1e1391c1936de517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517", + "reference": "b115554301161fa21467629f1e1391c1936de517", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.3" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2024-12-27T00:36:43+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6|^7" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2023-10-12T05:21:21+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.3", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:45:45+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.9.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.9.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2024-07-24T11:22:20+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2024-10-17T10:06:22+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.7.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2024-07-18T11:15:46+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.4", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/30e286560c137526eccd4ce21b2de477ab0676d2", + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-02-03T10:55:03+00:00" + }, + { + "name": "laravel/breeze", + "version": "v2.3.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/breeze.git", + "reference": "c40f7fce4fd80e39c7f4317697eeba21d2344003" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/breeze/zipball/c40f7fce4fd80e39c7f4317697eeba21d2344003", + "reference": "c40f7fce4fd80e39c7f4317697eeba21d2344003", + "shasum": "" + }, + "require": { + "illuminate/console": "^11.0", + "illuminate/filesystem": "^11.0", + "illuminate/support": "^11.0", + "illuminate/validation": "^11.0", + "php": "^8.2.0", + "symfony/console": "^7.0" + }, + "require-dev": { + "laravel/framework": "^11.0", + "orchestra/testbench-core": "^9.0", + "phpstan/phpstan": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Breeze\\BreezeServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Breeze\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Minimal Laravel authentication scaffolding with Blade and Tailwind.", + "keywords": [ + "auth", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/breeze/issues", + "source": "https://github.com/laravel/breeze" + }, + "time": "2025-01-26T19:08:50+00:00" + }, + { + "name": "laravel/framework", + "version": "v11.41.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/3ef433d5865f30a19b6b1be247586068399b59cc", + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc", + "shasum": "" + }, + "require": { + "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.1.18|^0.2.0|^0.3.0", + "laravel/serializable-closure": "^1.3|^2.0", + "league/commonmark": "^2.6", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "league/uri": "^7.5.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^2.72.6|^3.8.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.0.3", + "symfony/error-handler": "^7.0.3", + "symfony/finder": "^7.0.3", + "symfony/http-foundation": "^7.2.0", + "symfony/http-kernel": "^7.0.3", + "symfony/mailer": "^7.0.3", + "symfony/mime": "^7.0.3", + "symfony/polyfill-php83": "^1.31", + "symfony/process": "^7.0.3", + "symfony/routing": "^7.0.3", + "symfony/uid": "^7.0.3", + "symfony/var-dumper": "^7.0.3", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/log-implementation": "1.0|2.0|3.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.322.9", + "ext-gmp": "*", + "fakerphp/faker": "^1.24", + "guzzlehttp/promises": "^2.0.3", + "guzzlehttp/psr7": "^2.4", + "laravel/pint": "^1.18", + "league/flysystem-aws-s3-v3": "^3.25.1", + "league/flysystem-ftp": "^3.25.1", + "league/flysystem-path-prefixing": "^3.25.1", + "league/flysystem-read-only": "^3.25.1", + "league/flysystem-sftp-v3": "^3.25.1", + "mockery/mockery": "^1.6.10", + "orchestra/testbench-core": "^9.6", + "pda/pheanstalk": "^5.0.6", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^1.11.5", + "phpunit/phpunit": "^10.5.35|^11.3.6", + "predis/predis": "^2.3", + "resend/resend-php": "^0.10.0", + "symfony/cache": "^7.0.3", + "symfony/http-client": "^7.0.3", + "symfony/psr-http-message-bridge": "^7.0.3", + "symfony/translation": "^7.0.3" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", + "brianium/paratest": "Required to run tests in parallel (^7.0|^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.25.1).", + "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", + "mockery/mockery": "Required to use mocking (^1.6).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^10.5|^11.0).", + "predis/predis": "Required to use the predis connector (^2.3).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "11.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/functions.php", + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Log/functions.php", + "src/Illuminate/Support/functions.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2025-01-30T13:25:22+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.4", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/abeaa2ba4294247d5409490d1ca1bc6248087011", + "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-mbstring": "*", + "php": "^8.1", + "symfony/console": "^6.2|^7.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "illuminate/collections": "^10.0|^11.0|^12.0", + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3|^3.4", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-mockery": "^1.1" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Add beautiful and user-friendly forms to your command-line applications.", + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.3.4" + }, + "time": "2025-01-24T15:41:01+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v4.0.8", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "ec1dd9ddb2ab370f79dfe724a101856e0963f43c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/ec1dd9ddb2ab370f79dfe724a101856e0963f43c", + "reference": "ec1dd9ddb2ab370f79dfe724a101856e0963f43c", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^11.0|^12.0", + "illuminate/contracts": "^11.0|^12.0", + "illuminate/database": "^11.0|^12.0", + "illuminate/support": "^11.0|^12.0", + "php": "^8.2", + "symfony/console": "^7.0" + }, + "require-dev": { + "mockery/mockery": "^1.6", + "orchestra/testbench": "^9.0|^10.0", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^11.3" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2025-01-26T19:34:36+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "2e1a362527783bcab6c316aad51bf36c5513ae44" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/2e1a362527783bcab6c316aad51bf36c5513ae44", + "reference": "2e1a362527783bcab6c316aad51bf36c5513ae44", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0|^11.0|^12.0", + "nesbot/carbon": "^2.67|^3.0", + "pestphp/pest": "^2.36|^3.0", + "phpstan/phpstan": "^2.0", + "symfony/var-dumper": "^6.2.0|^7.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2025-01-24T15:42:37+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.10.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/22177cc71807d38f2810c6204d8f7183d88a57d3", + "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.8|^9.3.3|^10.0" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.10.1" + }, + "time": "2025-01-27T14:24:01+00:00" + }, + { + "name": "league/commonmark", + "version": "2.6.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d990688c91cedfb69753ffc2512727ec646df2ad", + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2024-12-29T14:10:59+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.29.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "edc1bb7c86fab0776c3287dbd19b5fa278347319" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/edc1bb7c86fab0776c3287dbd19b5fa278347319", + "reference": "edc1bb7c86fab0776c3287dbd19b5fa278347319", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.29.1" + }, + "time": "2024-10-08T08:58:34+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.29.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "e0e8d52ce4b2ed154148453d321e97c8e931bd27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/e0e8d52ce4b2ed154148453d321e97c8e931bd27", + "reference": "e0e8d52ce4b2ed154148453d321e97c8e931bd27", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.29.0" + }, + "time": "2024-08-09T21:24:39+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/2d6702ff215bf922936ccc1ad31007edc76451b9", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.16.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-09-21T08:32:55+00:00" + }, + { + "name": "league/uri", + "version": "7.5.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "81fb5145d2644324614cc532b28efd0215bda430" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430", + "reference": "81fb5145d2644324614cc532b28efd0215bda430", + "shasum": "" + }, + "require": { + "league/uri-interfaces": "^7.5", + "php": "^8.1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain", + "league/uri-components": "Needed to easily manipulate URI objects components", + "php-64bit": "to improve IPV4 host parsing", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.5.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2024-12-08T08:40:02+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.5.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", + "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-factory": "^1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common interfaces and classes for URI representation and interaction", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.5.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2024-12-08T08:18:47+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.8.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/aef6ee73a77a66e404dd6540934a9ef1b3c855b4", + "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", + "predis/predis": "^1.1 || ^2", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.8.1" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2024-12-05T17:15:07+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.8.4", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/129700ed449b1f02d70272d2ac802357c8c30c58", + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "<100.0", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3 || ^7.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1|| ^6.0 || ^7.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.57.2", + "kylekatarnls/multi-tester": "^2.5.3", + "ondrejmirtes/better-reflection": "^6.25.0.4", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.3.1", + "phpstan/phpstan": "^1.11.2", + "phpunit/phpunit": "^10.5.20", + "squizlabs/php_codesniffer": "^3.9.0" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2024-12-27T09:25:35+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.2", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "da801d52f0354f70a638673c4a0f04e16529431d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/da801d52f0354f70a638673c4a0f04e16529431d", + "reference": "da801d52f0354f70a638673c4a0f04e16529431d", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.4" + }, + "require-dev": { + "nette/tester": "^2.5.2", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.2" + }, + "time": "2024-10-06T23:10:23+00:00" + }, + { + "name": "nette/utils", + "version": "v4.0.5", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/736c567e257dbe0fcf6ce81b4d6dbe05c6899f96", + "reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96", + "shasum": "" + }, + "require": { + "php": "8.0 - 8.4" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "dev-master", + "nette/tester": "^2.5", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.0.5" + }, + "time": "2024-08-07T15:39:19+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.4.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" + }, + "time": "2024-12-30T11:07:19+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.1.8" + }, + "require-dev": { + "illuminate/console": "^11.33.2", + "laravel/pint": "^1.18.2", + "mockery/mockery": "^1.6.12", + "pestphp/pest": "^2.36.0", + "phpstan/phpstan": "^1.12.11", + "phpstan/phpstan-strict-rules": "^1.6.1", + "symfony/var-dumper": "^7.1.8", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v2.3.0" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2024-11-21T10:39:51+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.3", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:41:07+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.7", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "http://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.7" + }, + "time": "2024-12-10T01:58:33+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2022-12-31T21:50:55+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.7.6", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.6" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2024-04-27T21:32:50+00:00" + }, + { + "name": "symfony/clock", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", + "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/clock": "^1.0", + "symfony/polyfill-php83": "^1.28" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/console", + "version": "v7.2.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/fefcc18c0f5d0efe3ab3152f15857298868dc2c3", + "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^6.4|^7.0" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/lock": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v7.2.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-11T03:49:26+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "959a74d044a6db21f4caa6d695648dcb5584cb49" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/959a74d044a6db21f4caa6d695648dcb5584cb49", + "reference": "959a74d044a6db21f4caa6d695648dcb5584cb49", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^6.4|^7.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/serializer": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-07T09:39:55+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/910c5db85a5356d0fea57680defec4e99eb9c8c1", + "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/error-handler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f", + "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/finder", + "version": "v7.2.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v7.2.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-30T19:00:17+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "ee1b504b8926198be89d05e5b6fc4c3810c090f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ee1b504b8926198be89d05e5b6fc4c3810c090f0", + "reference": "ee1b504b8926198be89d05e5b6fc4c3810c090f0", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php83": "^1.27" + }, + "conflict": { + "doctrine/dbal": "<3.6", + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" + }, + "require-dev": { + "doctrine/dbal": "^3.6|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.4.12|^7.1.5", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/mime": "^6.4|^7.0", + "symfony/rate-limiter": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-17T10:56:55+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b", + "reference": "caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/error-handler": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<6.4", + "symfony/cache": "<6.4", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<6.4", + "symfony/form": "<6.4", + "symfony/http-client": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<6.4", + "symfony/messenger": "<6.4", + "symfony/translation": "<6.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<6.4", + "symfony/validator": "<6.4", + "symfony/var-dumper": "<6.4", + "twig/twig": "<3.12" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^6.4|^7.0", + "symfony/clock": "^6.4|^7.0", + "symfony/config": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/css-selector": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/dom-crawler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^6.4|^7.0", + "symfony/property-access": "^7.1", + "symfony/routing": "^6.4|^7.0", + "symfony/serializer": "^7.1", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/translation": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^6.4|^7.0", + "symfony/validator": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0", + "symfony/var-exporter": "^6.4|^7.0", + "twig/twig": "^3.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-29T07:40:13+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f3871b182c44997cf039f3b462af4a48fb85f9d3", + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/mime": "^7.2", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/messenger": "<6.4", + "symfony/mime": "<6.4", + "symfony/twig-bridge": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/twig-bridge": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-27T11:08:17+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/2fc3b4bd67e4747e45195bc4c98bea4628476204", + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<6.4", + "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/property-access": "^6.4|^7.0", + "symfony/property-info": "^6.4|^7.0", + "symfony/serializer": "^6.4.3|^7.0.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-27T11:08:17+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "c36586dcf89a12315939e00ec9b4474adcb1d773" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/c36586dcf89a12315939e00ec9b4474adcb1d773", + "reference": "c36586dcf89a12315939e00ec9b4474adcb1d773", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "2fb86d65e2d424369ad2905e83b236a8805ba491" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/2fb86d65e2d424369ad2905e83b236a8805ba491", + "reference": "2fb86d65e2d424369ad2905e83b236a8805ba491", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php83\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php83/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/process", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", + "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-11-06T14:24:19+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "ee9a67edc6baa33e5fae662f94f91fd262930996" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/ee9a67edc6baa33e5fae662f94f91fd262930996", + "reference": "ee9a67edc6baa33e5fae662f94f91fd262930996", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/yaml": "<6.4" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/yaml": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-17T10:56:55+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/string", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82", + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.1", + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-11-13T13:31:26+00:00" + }, + { + "name": "symfony/translation", + "version": "v7.2.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/e2674a30132b7cc4d74540d6c2573aa363f05923", + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5|^3.0" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<6.4", + "symfony/yaml": "<6.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^4.18|^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v7.2.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-07T08:18:10+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "4667ff3bd513750603a09c8dedbea942487fb07c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/4667ff3bd513750603a09c8dedbea942487fb07c", + "reference": "4667ff3bd513750603a09c8dedbea942487fb07c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/uid", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "2d294d0c48df244c71c105a169d0190bfb080426" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/2d294d0c48df244c71c105a169d0190bfb080426", + "reference": "2d294d0c48df244c71c105a169d0190bfb080426", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "82b478c69745d8878eb60f9a049a4d584996f73a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/82b478c69745d8878eb60f9a049a4d584996f73a", + "reference": "82b478c69745d8878eb60f9a049a4d584996f73a", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/uid": "^6.4|^7.0", + "twig/twig": "^3.12" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-17T11:39:41+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "0d72ac1c00084279c1816675284073c5a337c20d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0d72ac1c00084279c1816675284073c5a337c20d", + "reference": "0d72ac1c00084279c1816675284073c5a337c20d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0" + }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.3.0" + }, + "time": "2024-12-21T16:25:41+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.1", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/a59a13791077fe3d44f90e7133eb68e7d22eaff2", + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.3", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:52:34+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "https://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.3" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2024-11-21T01:49:47+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "filp/whoops", + "version": "2.17.0", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "075bc0c26631110584175de6523ab3f1652eb28e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/075bc0c26631110584175de6523ab3f1652eb28e", + "reference": "075bc0c26631110584175de6523ab3f1652eb28e", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.17.0" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-01-25T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + }, + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/53072e8ea22213a7ed168a8a15b96fbb8b82d44b", + "reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.66.0", + "illuminate/view": "^10.48.25", + "larastan/larastan": "^2.9.12", + "laravel-zero/framework": "^10.48.25", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^1.17.0", + "pestphp/pest": "^2.36.0" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2025-01-14T16:20:53+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.41.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec", + "reference": "fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpstan/phpstan": "^1.10" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2025-01-24T15:45:36+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.12.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2024-11-08T17:47:46+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v8.5.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "f5c101b929c958e849a633283adff296ed5f38f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f5c101b929c958e849a633283adff296ed5f38f5", + "reference": "f5c101b929c958e849a633283adff296ed5f38f5", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.16.0", + "nunomaduro/termwind": "^2.1.0", + "php": "^8.2.0", + "symfony/console": "^7.1.5" + }, + "conflict": { + "laravel/framework": "<11.0.0 || >=12.0.0", + "phpunit/phpunit": "<10.5.1 || >=12.0.0" + }, + "require-dev": { + "larastan/larastan": "^2.9.8", + "laravel/framework": "^11.28.0", + "laravel/pint": "^1.18.1", + "laravel/sail": "^1.36.0", + "laravel/sanctum": "^4.0.3", + "laravel/tinker": "^2.10.0", + "orchestra/testbench-core": "^9.5.3", + "pestphp/pest": "^2.36.0 || ^3.4.0", + "sebastian/environment": "^6.1.0 || ^7.2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-8.x": "8.x-dev" + } + }, + "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2024-10-15T16:06:32+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "10.1.16", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.19.1 || ^5.1.0", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-text-template": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^3.0.0", + "sebastian/complexity": "^3.2.0", + "sebastian/environment": "^6.1.0", + "sebastian/lines-of-code": "^2.0.2", + "sebastian/version": "^4.0.1", + "theseer/tokenizer": "^1.2.3" + }, + "require-dev": { + "phpunit/phpunit": "^10.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-08-22T04:31:57+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T06:24:48+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T14:07:24+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:57:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "10.5.45", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "bd68a781d8e30348bc297449f5234b3458267ae8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bd68a781d8e30348bc297449f5234b3458267ae8", + "reference": "bd68a781d8e30348bc297449f5234b3458267ae8", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.12.1", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.3", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.45" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2025-02-06T16:08:12+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:12:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:43+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:15+00:00" + }, + { + "name": "sebastian/comparator", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-10-18T14:56:07+00:00" + }, + { + "name": "sebastian/complexity", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "68ff824baeae169ec9f2137158ee529584553799" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", + "reference": "68ff824baeae169ec9f2137158ee529584553799", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:37:17+00:00" + }, + { + "name": "sebastian/diff", + "version": "5.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "symfony/process": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:15:17+00:00" + }, + { + "name": "sebastian/environment", + "version": "6.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-23T08:47:14+00:00" + }, + { + "name": "sebastian/exporter", + "version": "5.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "955288482d97c19a372d3f31006ab3f37da47adf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/955288482d97c19a372d3f31006ab3f37da47adf", + "reference": "955288482d97c19a372d3f31006ab3f37da47adf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:17:12+00:00" + }, + { + "name": "sebastian/global-state", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:19:19+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/856e7f6a75a84e339195d48c556f23be2ebf75d0", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:38:20+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:32+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:06:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:05:40+00:00" + }, + { + "name": "sebastian/type", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:10:45+00:00" + }, + { + "name": "sebastian/version", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-07T11:34:05+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.7.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/0f2477c520e3729de58e061b8192f161c99f770b", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/backtrace/tree/1.7.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2024-12-02T13:28:15+00:00" + }, + { + "name": "spatie/error-solutions", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/error-solutions.git", + "reference": "d239a65235a1eb128dfa0a4e4c4ef032ea11b541" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/error-solutions/zipball/d239a65235a1eb128dfa0a4e4c4ef032ea11b541", + "reference": "d239a65235a1eb128dfa0a4e4c4ef032ea11b541", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "illuminate/broadcasting": "^10.0|^11.0", + "illuminate/cache": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", + "livewire/livewire": "^2.11|^3.3.5", + "openai-php/client": "^0.10.1", + "orchestra/testbench": "^7.0|8.22.3|^9.0", + "pestphp/pest": "^2.20", + "phpstan/phpstan": "^1.11", + "psr/simple-cache": "^3.0", + "psr/simple-cache-implementation": "^3.0", + "spatie/ray": "^1.28", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "legacy/ignition", + "Spatie\\ErrorSolutions\\": "src", + "Spatie\\LaravelIgnition\\": "legacy/laravel-ignition" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ruben Van Assche", + "email": "ruben@spatie.be", + "role": "Developer" + } + ], + "description": "This is my package error-solutions", + "homepage": "https://github.com/spatie/error-solutions", + "keywords": [ + "error-solutions", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/error-solutions/issues", + "source": "https://github.com/spatie/error-solutions/tree/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/Spatie", + "type": "github" + } + ], + "time": "2024-12-11T09:51:56+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "php": "^8.0", + "spatie/backtrace": "^1.6.1", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.0|^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.10.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-12-02T14:30:06+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.15.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "e3a68e137371e1eb9edc7f78ffa733f3b98991d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/e3a68e137371e1eb9edc7f78ffa733f3b98991d2", + "reference": "e3a68e137371e1eb9edc7f78ffa733f3b98991d2", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/error-solutions": "^1.0", + "spatie/flare-client-php": "^1.7", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-06-12T14:55:22+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "62042df15314b829d0f26e02108f559018e2aad0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/62042df15314b829d0f26e02108f559018e2aad0", + "reference": "62042df15314b829d0f26e02108f559018e2aad0", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^10.0|^11.0", + "php": "^8.1", + "spatie/ignition": "^1.15", + "symfony/console": "^6.2.3|^7.0", + "symfony/var-dumper": "^6.2.3|^7.0" + }, + "require-dev": { + "livewire/livewire": "^2.11|^3.3.5", + "mockery/mockery": "^1.5.1", + "openai-php/client": "^0.8.1", + "orchestra/testbench": "8.22.3|^9.0", + "pestphp/pest": "^2.34", + "phpstan/extension-installer": "^1.3.1", + "phpstan/phpstan-deprecation-rules": "^1.1.1", + "phpstan/phpstan-phpunit": "^1.3.16", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "psr/simple-cache-implementation": "Needed to cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + }, + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-12-02T08:43:31+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/ac238f173df0c9c1120f862d0f599e17535a87ec", + "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-07T12:55:42+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..59235a6 --- /dev/null +++ b/config/app.php @@ -0,0 +1,192 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => 'en_US', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => ServiceProvider::defaultProviders()->merge([ + /* + * Package Service Providers... + */ + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + App\Components\DataExtraction\Providers\DataExtractionServiceProvider::class, + App\Components\Api\Providers\ApiServiceProvider::class, + App\Components\Admin\Providers\AdminServiceProvider::class, + + ])->toArray(), + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => Facade::defaultAliases()->merge([ + // 'Example' => App\Facades\Example::class, + ])->toArray(), + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..9548c15 --- /dev/null +++ b/config/auth.php @@ -0,0 +1,115 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\Models\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expiry time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_reset_tokens', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | times out and the user is prompted to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => 10800, + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..2410485 --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,71 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'cluster' => env('PUSHER_APP_CLUSTER'), + 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', + ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..d4171e2 --- /dev/null +++ b/config/cache.php @@ -0,0 +1,111 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + 'lock_connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + 'lock_path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'cache', + 'lock_connection' => 'default', + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/config/cors.php b/config/cors.php new file mode 100644 index 0000000..8a39e6d --- /dev/null +++ b/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..33bbcfa --- /dev/null +++ b/config/database.php @@ -0,0 +1,151 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('MSDATABASE_URL'), + 'host' => env('MSDB_HOST', 'localhost'), + 'port' => env('MSDB_PORT', '1433'), + 'database' => env('MSDB_DATABASE', 'forge'), + 'username' => env('MSDB_USERNAME', 'forge'), + 'password' => env('MSDB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..e9d9dbd --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been set up for each driver as an example of the required values. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/hashing.php b/config/hashing.php new file mode 100644 index 0000000..0e8a0bb --- /dev/null +++ b/config/hashing.php @@ -0,0 +1,54 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 12), + 'verify' => true, + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 65536, + 'threads' => 1, + 'time' => 4, + 'verify' => true, + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..c44d276 --- /dev/null +++ b/config/logging.php @@ -0,0 +1,131 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", + | "custom", "stack" + | + */ + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + 'replace_placeholders' => true, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + 'replace_placeholders' => true, + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + 'facility' => LOG_USER, + 'replace_placeholders' => true, + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..e894b2e --- /dev/null +++ b/config/mail.php @@ -0,0 +1,134 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "log", "array", "failover", "roundrobin" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'postmark' => [ + 'transport' => 'postmark', + // 'message_stream_id' => null, + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + + 'roundrobin' => [ + 'transport' => 'roundrobin', + 'mailers' => [ + 'ses', + 'postmark', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..01c6b05 --- /dev/null +++ b/config/queue.php @@ -0,0 +1,109 @@ + env('QUEUE_CONNECTION', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Job Batching + |-------------------------------------------------------------------------- + | + | The following options configure the database and table that store job + | batching information. These options can be updated to any database + | connection and table which has been defined by your application. + | + */ + + 'batching' => [ + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'job_batches', + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/sanctum.php b/config/sanctum.php new file mode 100644 index 0000000..35d75b3 --- /dev/null +++ b/config/sanctum.php @@ -0,0 +1,83 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( + '%s%s', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + Sanctum::currentApplicationUrlWithPort() + ))), + + /* + |-------------------------------------------------------------------------- + | Sanctum Guards + |-------------------------------------------------------------------------- + | + | This array contains the authentication guards that will be checked when + | Sanctum is trying to authenticate a request. If none of these guards + | are able to authenticate the request, Sanctum will use the bearer + | token that's present on an incoming request for authentication. + | + */ + + 'guard' => ['web'], + + /* + |-------------------------------------------------------------------------- + | Expiration Minutes + |-------------------------------------------------------------------------- + | + | This value controls the number of minutes until an issued token will be + | considered expired. This will override any values set in the token's + | "expires_at" attribute, but first-party sessions are not affected. + | + */ + + 'expiration' => null, + + /* + |-------------------------------------------------------------------------- + | Token Prefix + |-------------------------------------------------------------------------- + | + | Sanctum can prefix new tokens in order to take advantage of numerous + | security scanning initiatives maintained by open source platforms + | that notify developers if they commit tokens into repositories. + | + | See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning + | + */ + + 'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''), + + /* + |-------------------------------------------------------------------------- + | Sanctum Middleware + |-------------------------------------------------------------------------- + | + | When authenticating your first-party SPA with Sanctum you may need to + | customize some of the middleware Sanctum uses while processing the + | request. You may change the middleware listed below as required. + | + */ + + 'middleware' => [ + 'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..0ace530 --- /dev/null +++ b/config/services.php @@ -0,0 +1,34 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..e738cb3 --- /dev/null +++ b/config/session.php @@ -0,0 +1,214 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | While using one of the framework's cache driven session backends you may + | list a cache store that should be used for these sessions. This value + | must match with one of the application's configured cache "stores". + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" since this is a secure default value. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + + /* + |-------------------------------------------------------------------------- + | Partitioned Cookies + |-------------------------------------------------------------------------- + | + | Setting this value to true will tie the cookie to the top-level site for + | a cross-site context. Partitioned cookies are accepted by the browser + | when flagged "secure" and the Same-Site attribute is set to "none". + | + */ + + 'partitioned' => false, + +]; diff --git a/config/view.php b/config/view.php new file mode 100644 index 0000000..22b8a18 --- /dev/null +++ b/config/view.php @@ -0,0 +1,36 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..cd7e9a8 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,45 @@ + + */ +class UserFactory extends Factory +{ + /** + * The current password being used by the factory. + */ + protected static ?string $password; + + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => static::$password ??= Hash::make('password'), + 'remember_token' => Str::random(10), + 'active' => true, + ]; + } + + /** + * Indicate that the model's email address should be unverified. + */ + public function unverified(): static + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..444fafb --- /dev/null +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('users'); + } +}; diff --git a/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php new file mode 100644 index 0000000..81a7229 --- /dev/null +++ b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php @@ -0,0 +1,28 @@ +string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('password_reset_tokens'); + } +}; diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php new file mode 100644 index 0000000..249da81 --- /dev/null +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 0000000..e828ad8 --- /dev/null +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,33 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('personal_access_tokens'); + } +}; diff --git a/database/migrations/auth/2025_01_08_182406_auth_000.php b/database/migrations/auth/2025_01_08_182406_auth_000.php new file mode 100644 index 0000000..412a12d --- /dev/null +++ b/database/migrations/auth/2025_01_08_182406_auth_000.php @@ -0,0 +1,68 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add schema: {$this->schema}"); + $qryDef = "CREATE SCHEMA IF NOT EXISTS {$this->schema}"; + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Drop schema: {$this->schema}"); + $dropQry = "DROP SCHEMA IF EXISTS {$this->schema} CASCADE"; + DB::connection($this->connection)->statement($dropQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/auth/2025_01_08_183802_auth_roles_000.php b/database/migrations/auth/2025_01_08_183802_auth_roles_000.php new file mode 100644 index 0000000..f9e9b78 --- /dev/null +++ b/database/migrations/auth/2025_01_08_183802_auth_roles_000.php @@ -0,0 +1,99 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL + , name character varying (255) NOT NULL + , description text + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id) + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_name ON {$this->schema}.tbl_{$this->basename} (name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_08_185530_auth_permissions_000.php b/database/migrations/auth/2025_01_08_185530_auth_permissions_000.php new file mode 100644 index 0000000..d6c74e0 --- /dev/null +++ b/database/migrations/auth/2025_01_08_185530_auth_permissions_000.php @@ -0,0 +1,99 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL + , name character varying (255) NOT NULL + , description text + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id) + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_name ON {$this->schema}.tbl_{$this->basename} (name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_08_190044_auth_role_permissions_000.php b/database/migrations/auth/2025_01_08_190044_auth_role_permissions_000.php new file mode 100644 index 0000000..7f82317 --- /dev/null +++ b/database/migrations/auth/2025_01_08_190044_auth_role_permissions_000.php @@ -0,0 +1,106 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + role_id bigint NOT NULL, + permission_id bigint NOT NULL, + created_at timestamp(0) without time zone, + updated_at timestamp(0) without time zone, + deleted_at timestamp(0) with time zone, + CONSTRAINT pk_{$this->basename}_role_id_permission_id PRIMARY KEY (role_id, permission_id), + CONSTRAINT fk_{$this->basename}_permissions_permission_id FOREIGN KEY (permission_id) + REFERENCES auth.tbl_permissions (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE CASCADE, + CONSTRAINT fk_{$this->basename}_roles_role_id FOREIGN KEY (role_id) + REFERENCES auth.tbl_roles (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE CASCADE + ) + "; + $idxs = ([ + "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_17_150737_auth_tbl_resource_types_000.php b/database/migrations/auth/2025_01_17_150737_auth_tbl_resource_types_000.php new file mode 100644 index 0000000..a5c5764 --- /dev/null +++ b/database/migrations/auth/2025_01_17_150737_auth_tbl_resource_types_000.php @@ -0,0 +1,99 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL + , name character varying (255) NOT NULL + , description text + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id) + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_name ON {$this->schema}.tbl_{$this->basename} (name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_17_155934_auth_tbl_resource_type_mappings_000.php b/database/migrations/auth/2025_01_17_155934_auth_tbl_resource_type_mappings_000.php new file mode 100644 index 0000000..c98c901 --- /dev/null +++ b/database/migrations/auth/2025_01_17_155934_auth_tbl_resource_type_mappings_000.php @@ -0,0 +1,104 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + resource_type_id bigint NOT NULL + , table_schema character varying (255) NOT NULL + , table_name character varying (255) NOT NULL + , resource_value_column character varying (255) NOT NULL + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_resource_type_id PRIMARY KEY (resource_type_id) + , CONSTRAINT fk_{$this->basename}_resource_types_resource_type_id FOREIGN KEY (resource_type_id) + REFERENCES auth.tbl_resource_types (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE CASCADE + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_table_schema_table_name ON {$this->schema}.tbl_{$this->basename} (table_schema, table_name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_17_161044_auth_tbl_user_roles_000.php b/database/migrations/auth/2025_01_17_161044_auth_tbl_user_roles_000.php new file mode 100644 index 0000000..b22a94b --- /dev/null +++ b/database/migrations/auth/2025_01_17_161044_auth_tbl_user_roles_000.php @@ -0,0 +1,111 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL, + user_id bigint NOT NULL, + role_id bigint NOT NULL, + description text, + created_at timestamp(0) without time zone, + updated_at timestamp(0) without time zone, + deleted_at timestamp(0) with time zone, + CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id), + CONSTRAINT fk_{$this->basename}_roles_role_id FOREIGN KEY (role_id) + REFERENCES auth.tbl_roles (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE NO ACTION + NOT VALID, + CONSTRAINT fk_{$this->basename}_users_user_id FOREIGN KEY (user_id) + REFERENCES public.users (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE NO ACTION + NOT VALID + ) + "; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_user_id_role_id ON {$this->schema}.tbl_{$this->basename} (user_id, role_id)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_17_162854_auth_fn_get_resource_query_000.php b/database/migrations/auth/2025_01_17_162854_auth_fn_get_resource_query_000.php new file mode 100644 index 0000000..f8c121b --- /dev/null +++ b/database/migrations/auth/2025_01_17_162854_auth_fn_get_resource_query_000.php @@ -0,0 +1,90 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add function: {$this->schema}.{$this->basename}"); + $qryDef = "CREATE OR REPLACE FUNCTION {$this->schema}.{$this->basename}( + resource_type_id bigint) + RETURNS TABLE(resource_id bigint, resource_value text) + LANGUAGE 'plpgsql' + COST 100 + VOLATILE PARALLEL UNSAFE + ROWS 1000 + + AS \$BODY\$ + DECLARE + resource_query text; + BEGIN + SELECT format('SELECT id, %I::text AS resource_value FROM %I.%I', rtm.resource_value_column, rtm.table_schema, rtm.table_name) + INTO resource_query + FROM auth.resource_type_mappings rtm + WHERE rtm.resource_type_id = $1; + + RETURN QUERY EXECUTE resource_query; + END; + \$BODY\$; + "; + + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Drop function: {$this->schema}.{$this->basename}"); + $dropQry = "DROP FUNCTION IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/auth/2025_01_17_162900_auth_fn_check_valid_role_000.php b/database/migrations/auth/2025_01_17_162900_auth_fn_check_valid_role_000.php new file mode 100644 index 0000000..5234d62 --- /dev/null +++ b/database/migrations/auth/2025_01_17_162900_auth_fn_check_valid_role_000.php @@ -0,0 +1,90 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add function: {$this->schema}.{$this->basename}"); + $qryDef = "CREATE OR REPLACE FUNCTION {$this->schema}.{$this->basename}() + RETURNS trigger + LANGUAGE 'plpgsql' + COST 100 + VOLATILE NOT LEAKPROOF + AS \$BODY\$ + BEGIN + IF NEW.role_id IS NOT NULL THEN + IF NOT EXISTS ( + SELECT 1 + FROM auth.tbl_user_roles + WHERE user_id = NEW.user_id + AND role_id = NEW.role_id + ) THEN + RAISE EXCEPTION 'Invalid role_id for user. The role must be assigned to the user in tbl_user_roles.'; + END IF; + END IF; + RETURN NEW; + END; + \$BODY\$; + "; + + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Drop function: {$this->schema}.{$this->basename}"); + $dropQry = "DROP FUNCTION IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/auth/2025_01_17_162915_auth_tbl_resource_associations_000.php b/database/migrations/auth/2025_01_17_162915_auth_tbl_resource_associations_000.php new file mode 100644 index 0000000..555ee66 --- /dev/null +++ b/database/migrations/auth/2025_01_17_162915_auth_tbl_resource_associations_000.php @@ -0,0 +1,120 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL, + user_id bigint NOT NULL, + resource_type_id bigint NOT NULL, + role_id bigint, + description character varying COLLATE pg_catalog.\"default\", + resource_id bigint, + created_at timestamp(0) with time zone, + updated_at timestamp(0) with time zone, + deleted_at timestamp(0) with time zone, + CONSTRAINT pk_resource_assoc_id PRIMARY KEY (id), + CONSTRAINT fk_resource_assoc_resource_types_resource_type_id FOREIGN KEY (resource_type_id) + REFERENCES auth.tbl_resource_types (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE NO ACTION + NOT VALID, + CONSTRAINT fk_resource_assoc_users_user_id FOREIGN KEY (user_id) + REFERENCES public.users (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE NO ACTION + NOT VALID + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_resource_assoc_user_id_resource_type_id_role_id_resource_id ON {$this->schema}.tbl_{$this->basename} (user_id, resource_type_id, role_id, resource_id)" + , "CREATE INDEX idx_resource_assoc_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_resource_assoc_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $triggerDef = "CREATE TRIGGER check_valid_role_trigger + BEFORE INSERT OR UPDATE + ON auth.tbl_resource_associations + FOR EACH ROW + EXECUTE FUNCTION auth.check_valid_role();"; + + DB::connection($this->connection)->statement($triggerDef); + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_17_170721_auth_vw_user_authorizations_000.php b/database/migrations/auth/2025_01_17_170721_auth_vw_user_authorizations_000.php new file mode 100644 index 0000000..dfd971b --- /dev/null +++ b/database/migrations/auth/2025_01_17_170721_auth_vw_user_authorizations_000.php @@ -0,0 +1,115 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = " WITH user_data AS ( + SELECT pu.id AS user_id, + pu.name AS user_name, + ara.resource_type_id, + art.name AS resource_type, + ara.resource_id, + ara.role_id, + ar_1.name AS role + FROM users pu + LEFT JOIN auth.resource_associations ara ON ara.user_id = pu.id + LEFT JOIN auth.resource_types art ON art.id = ara.resource_type_id + LEFT JOIN auth.roles ar_1 ON ar_1.id = ara.role_id + WHERE ara.resource_type_id IS NOT NULL + + ), resources AS ( + SELECT ud.user_id, + ud.resource_type_id, + ud.user_name, + ud.resource_type, + ud.role_id, + ud.role, + r_1.resource_id, + r_1.resource_value + FROM user_data ud + LEFT JOIN LATERAL ( SELECT r_2.resource_id, + r_2.resource_value + FROM auth.get_resource_query(ud.resource_type_id) r_2(resource_id, resource_value) + WHERE ud.resource_id IS NULL OR r_2.resource_id = ud.resource_id) r_1 ON true + ) + SELECT DISTINCT r.user_id, + r.resource_type_id, + r.user_name, + r.resource_type, + r.resource_id, + r.resource_value, + COALESCE(r.role_id, ur.role_id) AS role_id, + COALESCE(r.role, ar.name) AS role + FROM resources r + LEFT JOIN auth.user_roles ur ON ur.user_id = r.user_id + LEFT JOIN auth.roles ar ON ar.id = ur.role_id + WHERE r.resource_value IS NOT NULL + ORDER BY r.user_id; +"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_01_30_174708_auth_vw_user_authorizations_001.php b/database/migrations/auth/2025_01_30_174708_auth_vw_user_authorizations_001.php new file mode 100644 index 0000000..4642f28 --- /dev/null +++ b/database/migrations/auth/2025_01_30_174708_auth_vw_user_authorizations_001.php @@ -0,0 +1,172 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "WITH user_data AS ( + SELECT pu.id AS user_id, + pu.name AS user_name, + ara.resource_type_id, + art.name AS resource_type, + ara.resource_id, + ara.role_id, + ar_1.name AS role + FROM users pu + LEFT JOIN auth.resource_associations ara ON ara.user_id = pu.id AND ara.deleted_at IS NULL + LEFT JOIN auth.resource_types art ON art.id = ara.resource_type_id AND art.deleted_at IS NULL + LEFT JOIN auth.roles ar_1 ON ar_1.id = ara.role_id AND ar_1.deleted_at IS NULL + WHERE ara.resource_type_id IS NOT NULL + ), resources AS ( + SELECT ud.user_id, + ud.resource_type_id, + ud.user_name, + ud.resource_type, + ud.role_id, + ud.role, + r_1.resource_id, + r_1.resource_value + FROM user_data ud + LEFT JOIN LATERAL ( SELECT r_2.resource_id, + r_2.resource_value + FROM auth.get_resource_query(ud.resource_type_id) r_2(resource_id, resource_value) + WHERE ud.resource_id IS NULL OR r_2.resource_id = ud.resource_id) r_1 ON true + ) +, role_results AS ( SELECT DISTINCT r.user_id, + r.resource_type_id, + r.user_name, + r.resource_type, + r.resource_id, + r.resource_value, + COALESCE(r.role_id, ur.role_id) AS role_id, + COALESCE(r.role, ar.name) AS role + FROM resources r + LEFT JOIN auth.user_roles ur ON ur.user_id = r.user_id AND ur.deleted_at IS NULL + LEFT JOIN auth.roles ar ON ar.id = ur.role_id AND ar.deleted_at IS NULL + WHERE r.resource_value IS NOT NULL +) +SELECT + role_results.* + , arp.permission_id + , ap.name as permission_name +FROM role_results +LEFT JOIN auth.role_permissions arp ON arp.role_id = role_results.role_id AND arp.deleted_at IS NULL +LEFT JOIN auth.permissions ap ON ap.id = arp.permission_id AND ap.deleted_at IS NULL +ORDER BY user_id, resource_type_id, resource_id, role_id, permission_id +"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Re-creating view: {$this->schema}.{$this->basename}"); + $viewDef = " WITH user_data AS ( + SELECT pu.id AS user_id, + pu.name AS user_name, + ara.resource_type_id, + art.name AS resource_type, + ara.resource_id, + ara.role_id, + ar_1.name AS role + FROM users pu + LEFT JOIN auth.resource_associations ara ON ara.user_id = pu.id + LEFT JOIN auth.resource_types art ON art.id = ara.resource_type_id + LEFT JOIN auth.roles ar_1 ON ar_1.id = ara.role_id + WHERE ara.resource_type_id IS NOT NULL + + ), resources AS ( + SELECT ud.user_id, + ud.resource_type_id, + ud.user_name, + ud.resource_type, + ud.role_id, + ud.role, + r_1.resource_id, + r_1.resource_value + FROM user_data ud + LEFT JOIN LATERAL ( SELECT r_2.resource_id, + r_2.resource_value + FROM auth.get_resource_query(ud.resource_type_id) r_2(resource_id, resource_value) + WHERE ud.resource_id IS NULL OR r_2.resource_id = ud.resource_id) r_1 ON true + ) + SELECT DISTINCT r.user_id, + r.resource_type_id, + r.user_name, + r.resource_type, + r.resource_id, + r.resource_value, + COALESCE(r.role_id, ur.role_id) AS role_id, + COALESCE(r.role, ar.name) AS role + FROM resources r + LEFT JOIN auth.user_roles ur ON ur.user_id = r.user_id + LEFT JOIN auth.roles ar ON ar.id = ur.role_id + WHERE r.resource_value IS NOT NULL + ORDER BY r.user_id; +"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_232830_refactor.auth.permissions_001.php b/database/migrations/auth/2025_02_10_232830_refactor.auth.permissions_001.php new file mode 100644 index 0000000..273d14f --- /dev/null +++ b/database/migrations/auth/2025_02_10_232830_refactor.auth.permissions_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_233845_refactor.auth.roles_001.php b/database/migrations/auth/2025_02_10_233845_refactor.auth.roles_001.php new file mode 100644 index 0000000..874c1c9 --- /dev/null +++ b/database/migrations/auth/2025_02_10_233845_refactor.auth.roles_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_233953_refactor.auth.role_permissions_001.php b/database/migrations/auth/2025_02_10_233953_refactor.auth.role_permissions_001.php new file mode 100644 index 0000000..48082d9 --- /dev/null +++ b/database/migrations/auth/2025_02_10_233953_refactor.auth.role_permissions_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_234054_refactor.auth.tbl_resource_types_001.php b/database/migrations/auth/2025_02_10_234054_refactor.auth.tbl_resource_types_001.php new file mode 100644 index 0000000..bcebda9 --- /dev/null +++ b/database/migrations/auth/2025_02_10_234054_refactor.auth.tbl_resource_types_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_234131_refactor.auth.tbl_resource_type_mappings_001.php b/database/migrations/auth/2025_02_10_234131_refactor.auth.tbl_resource_type_mappings_001.php new file mode 100644 index 0000000..82db25c --- /dev/null +++ b/database/migrations/auth/2025_02_10_234131_refactor.auth.tbl_resource_type_mappings_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_234227_refactor.auth.tbl_user_roles_001.php b/database/migrations/auth/2025_02_10_234227_refactor.auth.tbl_user_roles_001.php new file mode 100644 index 0000000..a5c4090 --- /dev/null +++ b/database/migrations/auth/2025_02_10_234227_refactor.auth.tbl_user_roles_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_234318_refactor.auth.tbl_resource_associations_001.php b/database/migrations/auth/2025_02_10_234318_refactor.auth.tbl_resource_associations_001.php new file mode 100644 index 0000000..1ad2a41 --- /dev/null +++ b/database/migrations/auth/2025_02_10_234318_refactor.auth.tbl_resource_associations_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/auth/2025_02_10_235303_refactor.auth.fn_get_resource_query_001.php b/database/migrations/auth/2025_02_10_235303_refactor.auth.fn_get_resource_query_001.php new file mode 100644 index 0000000..d319797 --- /dev/null +++ b/database/migrations/auth/2025_02_10_235303_refactor.auth.fn_get_resource_query_001.php @@ -0,0 +1,111 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replace function: {$this->schema}.{$this->basename}"); + $qryDef = "CREATE OR REPLACE FUNCTION {$this->schema}.{$this->basename}( + resource_type_id bigint) + RETURNS TABLE(resource_id bigint, resource_value text) + LANGUAGE 'plpgsql' + COST 100 + VOLATILE PARALLEL UNSAFE + ROWS 1000 + + AS \$BODY\$ + DECLARE + resource_query text; + BEGIN + SELECT format('SELECT id, %I::text AS resource_value FROM %I.%I WHERE deleted_at IS NULL', rtm.resource_value_column, rtm.table_schema, rtm.table_name) + INTO resource_query + FROM auth.resource_type_mappings rtm + WHERE rtm.resource_type_id = $1; + + RETURN QUERY EXECUTE resource_query; + END; + \$BODY\$; + "; + + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Replace function: {$this->schema}.{$this->basename}"); + $qryDef = "CREATE OR REPLACE FUNCTION {$this->schema}.{$this->basename}( + resource_type_id bigint) + RETURNS TABLE(resource_id bigint, resource_value text) + LANGUAGE 'plpgsql' + COST 100 + VOLATILE PARALLEL UNSAFE + ROWS 1000 + + AS \$BODY\$ + DECLARE + resource_query text; + BEGIN + SELECT format('SELECT id, %I::text AS resource_value FROM %I.%I', rtm.resource_value_column, rtm.table_schema, rtm.table_name) + INTO resource_query + FROM auth.resource_type_mappings rtm + WHERE rtm.resource_type_id = $1; + + RETURN QUERY EXECUTE resource_query; + END; + \$BODY\$; + "; + + DB::connection($this->connection)->statement($qryDef); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/auth/2025_02_11_000208_refactor.auth.vw_user_authorizations_002.php b/database/migrations/auth/2025_02_11_000208_refactor.auth.vw_user_authorizations_002.php new file mode 100644 index 0000000..a6f2c42 --- /dev/null +++ b/database/migrations/auth/2025_02_11_000208_refactor.auth.vw_user_authorizations_002.php @@ -0,0 +1,179 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { +// $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); +// $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; +// DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "WITH user_data AS ( + SELECT pu.id AS user_id, + pu.name AS user_name, + ara.resource_type_id, + art.name AS resource_type, + ara.resource_id, + ara.role_id, + ar_1.name AS role + FROM users pu + LEFT JOIN auth.resource_associations ara ON ara.user_id = pu.id + LEFT JOIN auth.resource_types art ON art.id = ara.resource_type_id + LEFT JOIN auth.roles ar_1 ON ar_1.id = ara.role_id + WHERE ara.resource_type_id IS NOT NULL + ), resources AS ( + SELECT ud.user_id, + ud.resource_type_id, + ud.user_name, + ud.resource_type, + ud.role_id, + ud.role, + r_1.resource_id, + r_1.resource_value + FROM user_data ud + LEFT JOIN LATERAL ( SELECT r_2.resource_id, + r_2.resource_value + FROM auth.get_resource_query(ud.resource_type_id) r_2(resource_id, resource_value) + WHERE ud.resource_id IS NULL OR r_2.resource_id = ud.resource_id) r_1 ON true + ) +, role_results AS ( SELECT DISTINCT r.user_id, + r.resource_type_id, + r.user_name, + r.resource_type, + r.resource_id, + r.resource_value, + COALESCE(r.role_id, ur.role_id) AS role_id, + COALESCE(r.role, ar.name) AS role + FROM resources r + LEFT JOIN auth.user_roles ur ON ur.user_id = r.user_id + LEFT JOIN auth.roles ar ON ar.id = ur.role_id + WHERE r.resource_value IS NOT NULL +) +SELECT + role_results.* + , arp.permission_id + , ap.name as permission_name +FROM role_results +LEFT JOIN auth.role_permissions arp ON arp.role_id = role_results.role_id +LEFT JOIN auth.permissions ap ON ap.id = arp.permission_id +ORDER BY user_id, resource_type_id, resource_id, role_id, permission_id +"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { +// $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); +// $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; +// DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "WITH user_data AS ( + SELECT pu.id AS user_id, + pu.name AS user_name, + ara.resource_type_id, + art.name AS resource_type, + ara.resource_id, + ara.role_id, + ar_1.name AS role + FROM users pu + LEFT JOIN auth.resource_associations ara ON ara.user_id = pu.id AND ara.deleted_at IS NULL + LEFT JOIN auth.resource_types art ON art.id = ara.resource_type_id AND art.deleted_at IS NULL + LEFT JOIN auth.roles ar_1 ON ar_1.id = ara.role_id AND ar_1.deleted_at IS NULL + WHERE ara.resource_type_id IS NOT NULL + ), resources AS ( + SELECT ud.user_id, + ud.resource_type_id, + ud.user_name, + ud.resource_type, + ud.role_id, + ud.role, + r_1.resource_id, + r_1.resource_value + FROM user_data ud + LEFT JOIN LATERAL ( SELECT r_2.resource_id, + r_2.resource_value + FROM auth.get_resource_query(ud.resource_type_id) r_2(resource_id, resource_value) + WHERE ud.resource_id IS NULL OR r_2.resource_id = ud.resource_id) r_1 ON true + ) +, role_results AS ( SELECT DISTINCT r.user_id, + r.resource_type_id, + r.user_name, + r.resource_type, + r.resource_id, + r.resource_value, + COALESCE(r.role_id, ur.role_id) AS role_id, + COALESCE(r.role, ar.name) AS role + FROM resources r + LEFT JOIN auth.user_roles ur ON ur.user_id = r.user_id AND ur.deleted_at IS NULL + LEFT JOIN auth.roles ar ON ar.id = ur.role_id AND ar.deleted_at IS NULL + WHERE r.resource_value IS NOT NULL +) +SELECT + role_results.* + , arp.permission_id + , ap.name as permission_name +FROM role_results +LEFT JOIN auth.role_permissions arp ON arp.role_id = role_results.role_id AND arp.deleted_at IS NULL +LEFT JOIN auth.permissions ap ON ap.id = arp.permission_id AND ap.deleted_at IS NULL +ORDER BY user_id, resource_type_id, resource_id, role_id, permission_id +"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_01_17_192530_config_000.php b/database/migrations/config/2025_01_17_192530_config_000.php new file mode 100644 index 0000000..fc8fe06 --- /dev/null +++ b/database/migrations/config/2025_01_17_192530_config_000.php @@ -0,0 +1,68 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add schema: {$this->schema}"); + $qryDef = "CREATE SCHEMA IF NOT EXISTS {$this->schema}"; + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Drop schema: {$this->schema}"); + $dropQry = "DROP SCHEMA IF EXISTS {$this->schema} CASCADE"; + DB::connection($this->connection)->statement($dropQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/config/2025_01_17_192752_config_tbl_web_pages_000.php b/database/migrations/config/2025_01_17_192752_config_tbl_web_pages_000.php new file mode 100644 index 0000000..0c686a3 --- /dev/null +++ b/database/migrations/config/2025_01_17_192752_config_tbl_web_pages_000.php @@ -0,0 +1,98 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL + , url character varying(255) + , description text + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id) + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_url ON {$this->schema}.tbl_{$this->basename} (url)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_01_23_171052_config_tbl_menu_types_000.php b/database/migrations/config/2025_01_23_171052_config_tbl_menu_types_000.php new file mode 100644 index 0000000..85955f1 --- /dev/null +++ b/database/migrations/config/2025_01_23_171052_config_tbl_menu_types_000.php @@ -0,0 +1,98 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL + , name character varying(100) + , description text + , created_at timestamp(0) with time zone + , updated_at timestamp(0) with time zone + , deleted_at timestamp(0) with time zone + , CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id) + )"; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_name ON {$this->schema}.tbl_{$this->basename} (name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_01_23_172359_config_tbl_navigation_items_000.php b/database/migrations/config/2025_01_23_172359_config_tbl_navigation_items_000.php new file mode 100644 index 0000000..93d6856 --- /dev/null +++ b/database/migrations/config/2025_01_23_172359_config_tbl_navigation_items_000.php @@ -0,0 +1,113 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Creating table: {$this->schema}.tbl_{$this->basename}"); + $tblDef = "CREATE TABLE IF NOT EXISTS {$this->schema}.tbl_{$this->basename} + ( + id BIGSERIAL, + menu_type_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + route VARCHAR(255) NOT NULL, + icon VARCHAR(100), + order_index INTEGER DEFAULT 0, + parent_id BIGINT, + is_active BOOLEAN DEFAULT true, + created_at timestamp(0) without time zone, + updated_at timestamp(0) without time zone, + deleted_at timestamp(0) with time zone, + CONSTRAINT pk_{$this->basename}_id PRIMARY KEY (id), + CONSTRAINT fk_{$this->basename}_menu_types_menu_type_id FOREIGN KEY (menu_type_id) + REFERENCES config.tbl_menu_types (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE CASCADE, + CONSTRAINT fk_{$this->basename}_navigation_items_parent_id FOREIGN KEY (parent_id) + REFERENCES config.tbl_navigation_items (id) MATCH SIMPLE + ON UPDATE NO ACTION + ON DELETE CASCADE + ) + "; + $idxs = ([ + "CREATE UNIQUE INDEX unq_{$this->basename}_menu_type_id_name ON {$this->schema}.tbl_{$this->basename} (menu_type_id, name)" + , "CREATE INDEX idx_{$this->basename}_created_at ON {$this->schema}.tbl_{$this->basename} (created_at)" + , "CREATE INDEX idx_{$this->basename}_updated_at ON {$this->schema}.tbl_{$this->basename} (updated_at)" + ]); + + DB::connection($this->connection)->statement($tblDef); + + foreach($idxs AS $idx){ + DB::connection($this->connection)->statement($idx); + } + + $this->writeMsg("Creating view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Dropping table: {$this->schema}.tbl_{$this->basename}"); + $dropTblQry = "DROP TABLE IF EXISTS {$this->schema}.tbl_{$this->basename}"; + DB::connection($this->connection)->statement($dropTblQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_02_10_234654_refactor.config.tbl_web_pages_001.php b/database/migrations/config/2025_02_10_234654_refactor.config.tbl_web_pages_001.php new file mode 100644 index 0000000..a2ed884 --- /dev/null +++ b/database/migrations/config/2025_02_10_234654_refactor.config.tbl_web_pages_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_02_10_234748_refactor.config.tbl_menu_types_001.php b/database/migrations/config/2025_02_10_234748_refactor.config.tbl_menu_types_001.php new file mode 100644 index 0000000..91cf106 --- /dev/null +++ b/database/migrations/config/2025_02_10_234748_refactor.config.tbl_menu_types_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/config/2025_02_10_234834_refactor.config.tbl_navigation_items_001.php b/database/migrations/config/2025_02_10_234834_refactor.config.tbl_navigation_items_001.php new file mode 100644 index 0000000..ce11485 --- /dev/null +++ b/database/migrations/config/2025_02_10_234834_refactor.config.tbl_navigation_items_001.php @@ -0,0 +1,82 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + $this->writeMsg("Creating view: {$this->schema}.vdel_{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename} WHERE deleted_at IS NOT NULL"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.vdel_{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + + } + + public function downInstructions(): void + { + $this->writeMsg("Dropping view: {$this->schema}.vdel_{$this->basename}"); + $dropViewQry = "DROP VIEW IF EXISTS {$this->schema}.vdel_{$this->basename}"; + DB::connection($this->connection)->statement($dropViewQry); + + $this->writeMsg("Replacing view: {$this->schema}.{$this->basename}"); + $viewDef = "SELECT * FROM {$this->schema}.tbl_{$this->basename}"; + $viewQry = "CREATE OR REPLACE VIEW {$this->schema}.{$this->basename} AS {$viewDef}"; + DB::connection($this->connection)->statement($viewQry); + } + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } + + +}; diff --git a/database/migrations/core/2025_01_08_183227_core_000.php b/database/migrations/core/2025_01_08_183227_core_000.php new file mode 100644 index 0000000..af4449f --- /dev/null +++ b/database/migrations/core/2025_01_08_183227_core_000.php @@ -0,0 +1,68 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add schema: {$this->schema}"); + $qryDef = "CREATE SCHEMA IF NOT EXISTS {$this->schema}"; + DB::connection($this->connection)->statement($qryDef); + } + + public function downInstructions(): void + { + $this->writeMsg("Drop schema: {$this->schema}"); + $dropQry = "DROP SCHEMA IF EXISTS {$this->schema} CASCADE"; + DB::connection($this->connection)->statement($dropQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/migrations/public/2025_01_08_174048_public_users_001.php b/database/migrations/public/2025_01_08_174048_public_users_001.php new file mode 100644 index 0000000..4b87363 --- /dev/null +++ b/database/migrations/public/2025_01_08_174048_public_users_001.php @@ -0,0 +1,70 @@ +msg = new ConsoleOutput(); + } + + public function upInstructions(): void + { + $this->writeMsg("Add column to: {$this->schema}.{$this->basename}"); + $tblDef = "ALTER TABLE {$this->schema}.{$this->basename} ADD COLUMN active bool DEFAULT true"; + DB::connection($this->connection)->statement($tblDef); + } + + public function downInstructions(): void + { + + $this->writeMsg("Dropping column from: {$this->schema}.{$this->basename}"); + $dropTblQry = "ALTER TABLE {$this->schema}.{$this->basename} DROP COLUMN active"; + DB::connection($this->connection)->statement($dropTblQry); + } + + + /** + * Run the migrations. + */ + public function up(): void + { + $upTimer = new Timer(); + $this->upInstructions(); + $this->writeMsg("This task took {$upTimer->getElapsedTime()} minutes"); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + $downTimer = new Timer(); + $this->downInstructions(); + $this->writeMsg("This task took {$downTimer->getElapsedTime()} minutes"); + } + + // Output messages to the console when the + public function writeMsg($msg): void + { + if(!$this->msgKtr){ + $this->msg->writeln(''); + } + $this->msgKtr++; + $this->msg->writeln("$this->msgKtr) $msg"); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..a9f4519 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,22 @@ +create(); + + // \App\Models\User::factory()->create([ + // 'name' => 'Test User', + // 'email' => 'test@example.com', + // ]); + } +} diff --git a/database/seeders/InitialAuthorizationSeeder.php b/database/seeders/InitialAuthorizationSeeder.php new file mode 100644 index 0000000..b9f5c95 --- /dev/null +++ b/database/seeders/InitialAuthorizationSeeder.php @@ -0,0 +1,111 @@ + 'View Stores', 'code' => 'stores.view'], + ['name' => 'Manage Stores', 'code' => 'stores.manage'], + + // Group Management + ['name' => 'View Groups', 'code' => 'groups.view'], + ['name' => 'Manage Groups', 'code' => 'groups.manage'], + + // Group Types Management + ['name' => 'View Group Types', 'code' => 'group-types.view'], + ['name' => 'Manage Group Types', 'code' => 'group-types.manage'], + + // User Management + ['name' => 'View Users', 'code' => 'users.view'], + ['name' => 'Manage Users', 'code' => 'users.manage'], + + // Role Management + ['name' => 'View Roles', 'code' => 'roles.view'], + ['name' => 'Manage Roles', 'code' => 'roles.manage'], + + // Permission Management + ['name' => 'View Permissions', 'code' => 'permissions.view'], + ['name' => 'Manage Permissions', 'code' => 'permissions.manage'], + ]; + + protected $roles = [ + [ + 'name' => 'System Administrator', + 'code' => 'sys.admin', + 'description' => 'Full system access', + 'permissions' => '*' // Special case: all permissions + ], + [ + 'name' => 'Store Manager', + 'code' => 'store.manager', + 'description' => 'Manages individual store operations', + 'permissions' => [ + 'stores.view', + 'users.view', + 'groups.view' + ] + ], + [ + 'name' => 'Group Manager', + 'code' => 'group.manager', + 'description' => 'Manages group operations', + 'permissions' => [ + 'stores.view', + 'groups.view', + 'groups.manage', + 'users.view' + ] + ], + [ + 'name' => 'User Manager', + 'code' => 'user.manager', + 'description' => 'Manages user accounts', + 'permissions' => [ + 'users.view', + 'users.manage' + ] + ] + ]; + + public function run() + { + DB::transaction(function () { + // Create Permissions + foreach ($this->permissions as $permissionData) { + Permission::firstOrCreate( + ['code' => $permissionData['code']], + $permissionData + ); + } + + // Create Roles and Assign Permissions + foreach ($this->roles as $roleData) { + $permissions = $roleData['permissions']; + unset($roleData['permissions']); + + $role = Role::firstOrCreate( + ['code' => $roleData['code']], + $roleData + ); + + // Handle permission assignment + if ($permissions === '*') { + // Assign all permissions to system admin + $role->permissions()->sync(Permission::all()); + } else { + // Assign specific permissions + $role->permissions()->sync( + Permission::whereIn('code', $permissions)->pluck('id') + ); + } + } + }); + } +} diff --git a/database/seeders/InitialStoreSeeder.php b/database/seeders/InitialStoreSeeder.php new file mode 100644 index 0000000..915bbc3 --- /dev/null +++ b/database/seeders/InitialStoreSeeder.php @@ -0,0 +1,243 @@ + 'MW BMW', + 'code' => '101', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'MW Honda', + 'code' => '102', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'MW Infiniti', + 'code' => '103', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'MW Mercedes Benz', + 'code' => '104', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'MW Porche', + 'code' => '105', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'MW Cadillac', + 'code' => '106', + 'address' => '1475 S. Barrington Rd.', + 'city' => 'Barrington', + 'state' => 'IL', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Stuart - Alfa Romero', + 'code' => '10', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Central New Jersey - Ferrari', + 'code' => '11', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Jacksonville - Bentley', + 'code' => '12', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Central New Jersey - Maserati', + 'code' => '13', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Jacksonville - Maserati', + 'code' => '14', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Jacksonville - Bentley', + 'code' => '16', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Libertyville - Honda', + 'code' => '17', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Highland Park - Acura', + 'code' => '18', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Stuart -Audi', + 'code' => '2', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Richmond - Mercedes Benz', + 'code' => '21', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Midlotian - Mercedes Benz', + 'code' => '22', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Stuart - Infiniti', + 'code' => '3', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Brickell Honda', + 'code' => '4', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Brickell Mazda', + 'code' => '5', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Ocean Cadillac', + 'code' => '6', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Chicago - Honda', + 'code' => '7', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Chicago - Volkswagen', + 'code' => '8', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'Sturat - Maserati', + 'code' => '9', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'OldMw - Jaguar', + 'code' => '-10', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'OldMw - Landrover', + 'code' => '-9', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'OldMw - Ininiti HE', + 'code' => '-8', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + Store::create([ + 'name' => 'OldMw - Mercedes Benz HE', + 'code' => '-7', + 'address' => '', + 'city' => '', + 'state' => '', + 'in_service_date' => now(), + ]); + }); + } + +} diff --git a/database/seeders/UserRoleAssignmentSeeder.php b/database/seeders/UserRoleAssignmentSeeder.php new file mode 100644 index 0000000..c051665 --- /dev/null +++ b/database/seeders/UserRoleAssignmentSeeder.php @@ -0,0 +1,56 @@ +first(); + UserAccessRole::create([ + 'user_id' => 2, + 'role_id' => $sysAdminRole->id, + 'group_id' => 1 // Murgado Automotive (Corporate) + ]); + + // 2. Store Manager Example + // Assign store manager role for Motor Werks (store_id: 1) + $storeManagerRole = Role::where('code', 'store.manager')->first(); + UserAccessRole::create([ + 'user_id' => 3, // tom + 'role_id' => $storeManagerRole->id, + 'store_id' => 1 // Motor Werks + ]); + + // 3. Group Manager Example + // Assign group manager role for Chicago Campus + $groupManagerRole = Role::where('code', 'group.manager')->first(); + UserAccessRole::create([ + 'user_id' => 5, // dimitar + 'role_id' => $groupManagerRole->id, + 'group_id' => 4 // Chicago Campus + ]); + + // Additional example: Give tom access to Honda brand group + UserAccessRole::create([ + 'user_id' => 3, // tom + 'role_id' => $storeManagerRole->id, + 'group_id' => 5 // Honda brand group + ]); + }); + } +} diff --git a/found b/found new file mode 100644 index 0000000..e69de29 diff --git a/notes/project-summary_part1.md b/notes/project-summary_part1.md new file mode 100644 index 0000000..1cf1847 --- /dev/null +++ b/notes/project-summary_part1.md @@ -0,0 +1,64 @@ +# Component-Based Laravel Infrastructure Project Summary + +## Project Context +- Consolidating multiple Laravel applications into a single application +- Supporting multiple auto groups under Murgado Automotive Group +- Need to support various domains: loyalty, management reporting, cafe menu products, trading desk + +## Key Decisions Made + +### Component Structure +``` +app/ +├── Components/ +│ ├── Api/ +│ │ ├── Contracts/ +│ │ ├── Services/ +│ │ │ ├── Loyalty/ +│ │ │ ├── Management/ +│ │ │ ├── Cafe/ +│ │ │ └── Trading/ +│ │ └── Providers/ +│ └── Auth/ +``` + +### Database Organization +- Using PostgreSQL with multiple schemas +- Tables prefixed with 'tbl_' +- Reading through views +- Schemas: + - public: Laravel/vendor tables + - auth: Authentication/authorization + - org: Organization structure + - [Additional schemas pending for other domains] + +### Authentication/Authorization +- Users table remains in public schema +- Role/permission system in auth schema +- Complex store/group relationship management +- Support for multiple group types (auto group, campus, brand) + +### Implementation Standards +- Write to tables, read from views +- Use both sequential and natural keys +- Schema-specific migrations +- Custom migration base structure with timing and logging + +## Next Steps To Discuss +1. Core schema implementation +2. API standardization +3. Component interaction patterns +4. Additional domain implementations +5. Data validation strategies + +## Technical Requirements +- Laravel 10 +- PostgreSQL 16 +- Alma Linux environment +- PHP 8.1 + +## Current Progress +- Basic component structure established +- Authentication framework set up +- Organization structure defined +- Initial database schemas and migrations created diff --git a/notes/project-summary_part2.md b/notes/project-summary_part2.md new file mode 100644 index 0000000..52f2497 --- /dev/null +++ b/notes/project-summary_part2.md @@ -0,0 +1,112 @@ +# Component-Based Laravel Infrastructure Project Progress Summary + +## Technical Environment +- Laravel 10 +- PostgreSQL 12 (dev) / 16 (prod) +- PHP 8.1 +- Ubuntu 22.04 (dev) / Alma Linux (prod) + +## Database Schema Implementation +1. Created and using schemas: + - public: Laravel system tables + - auth: Role/permission tables + - org: Organization structure tables + +2. Key Tables Created: +```sql +- public.users +- auth.roles +- auth.permissions +- auth.role_permissions +- org.tbl_stores +- org.tbl_user_access_roles (with constraint requiring store_id OR group_id) +``` + +## Component Structure +``` +app/ +├── Components/ +│ ├── Api/ # API functionality +│ │ ├── Http/ +│ │ │ ├── Controllers/ +│ │ │ │ └── v1/ # Version-specific controllers +│ │ │ └── Middleware/ +│ │ └── routes/ +│ │ └── v1/ +│ └── Admin/ # Admin interface +│ ├── Http/ +│ │ └── Controllers/ +│ ├── Providers/ +│ └── resources/ + └── views/ +``` + +## Current Working State +1. API endpoints functional with versioning and authentication +2. Admin interface operating with: + - User CRUD complete + - Role CRUD complete + - Permission CRUD complete + - Role-to-user assignments partially working (needs store/group handling) + +## Specific Implementation Details +1. Models contain explicit schema references: +```php +protected $table = 'auth.roles'; +protected $connection = 'pgsql'; +``` + +2. Validation includes explicit schema references: +```php +Rule::unique('pgsql.auth.roles', 'code') +``` + +3. Current challenge: User-role assignments need to handle the constraint: +```sql +CONSTRAINT chk_store_group_ids CHECK (store_id IS NOT NULL OR group_id IS NOT NULL) +``` + +## Authentication & Authorization Implementation Progress + +### Completed Components +1. Set up basic API structure with versioning +2. Implemented domain-specific "Hello World" endpoints for: + - Loyalty + - Management Reporting + - Cafe Menu Products + - Trading Desk + +### Admin Interface Development +1. Created Admin component separate from API component +2. Implemented User Management: + - CRUD operations + - Integration with auth schema + - Role assignment interface (partially complete) + +3. Implemented Role Management: + - CRUD operations + - Proper schema handling + - Validation with explicit schema references + +4. Implemented Permission Management: + - Basic CRUD operations + - Schema-aware validation + - Views and controllers established + +### Key Technical Decisions & Solutions +1. Explicit schema handling in PostgreSQL +2. Proper validation rules for cross-schema operations +3. Separation of web admin interface from API components + +### Current Challenges +1. Role assignments need to handle: + - Store/group associations + - System-wide roles without store/group requirement + - UI updates for store/group selection + +### Next Steps +1. Modify user-role assignments to handle store/group relationships +2. Update database constraints for system-wide roles +3. Enhance role assignment interface to include store/group selection +4. Implement permission assignment to roles +5. Set up role-based access control for API endpoints diff --git a/notes/project-summary_part3.md b/notes/project-summary_part3.md new file mode 100644 index 0000000..ead3168 --- /dev/null +++ b/notes/project-summary_part3.md @@ -0,0 +1,59 @@ +# Component-Based Laravel Infrastructure Project - Session 3 Summary + +## Completed Implementations + +### 1. Group Types Management +- Full CRUD operations for managing group types +- Consistent pattern following roles implementation + +### 2. Groups Management +- CRUD operations with group type relationships +- Active status handling +- Code validation with type-specific uniqueness + +### 3. Stores Management +- Complete CRUD functionality +- Location and status management +- Group membership capabilities + +### 4. Enhanced User Role Management +- Redesigned to support context-based role assignments +- Dedicated interface for managing user roles within store/group contexts +- Removed simple role checkboxes in favor of contextual assignments + +### 5. Role-Permission Management +- Implementation of permission assignments to roles +- Dedicated management interface + +### 6. Store-Group Membership Management +- Implementation of store assignments to groups +- Groups organized by type in the interface + +## Database Relationships Implemented +- Users → Roles (with Store/Group context) +- Roles → Permissions +- Stores → Groups (memberships) +- Groups → Group Types + +## Critical Next Steps + +### 1. Authentication/Authorization Implementation +- Need to implement middleware for web routes +- Setup API authentication +- Define permission checking mechanisms +- Create helpers/facades for permission verification + +### 2. Usage Documentation Needed For: +- Web route protection +- API endpoint security +- Permission checking in views +- Role-based access control in controllers +- Group/Store context handling + +### 3. Testing Requirements +- Authentication flows +- Authorization rules +- Context-based permissions +- API security + +This infrastructure now has a solid foundation for authentication and authorization, but needs documentation and implementation guidelines for actual use in the application. \ No newline at end of file diff --git a/notes/project_summary_preface.md b/notes/project_summary_preface.md new file mode 100644 index 0000000..f5ec609 --- /dev/null +++ b/notes/project_summary_preface.md @@ -0,0 +1,8 @@ +I am trying to create a base system for creating a comprehensive database for retail sales for a large autogroup. +I am using Laravel and Postgres on a linux server. +My development environment is Laravel 10, Postgres 12, and Ubuntu 22_04. +My production environment will most likely end up being Laravel 10, Postgres 16 and Alma Linux 9. +I'm using PhpStorm for my programming IDE. + +We have a basic database policy of creating purposeful schemas in the database and leaving the public schema for base Laravel tables and database objects required by 3rd party library vendors. +We also have a policy that we read from views and write to tables, whenever possible. We also create tables with the preface "tbl_". diff --git a/notes/tree-session3.txt b/notes/tree-session3.txt new file mode 100644 index 0000000..3a9c401 --- /dev/null +++ b/notes/tree-session3.txt @@ -0,0 +1,153 @@ +app +├── Components +│   ├── Admin +│   │   ├── Http +│   │   │   ├── Controllers +│   │   │   │   ├── GroupsController.php +│   │   │   │   ├── GroupTypesController.php +│   │   │   │   ├── PermissionsController.php +│   │   │   │   ├── RolesController.php +│   │   │   │   ├── StoresController.php +│   │   │   │   └── UsersController.php +│   │   │   └── Middleware +│   │   ├── Providers +│   │   │   └── AdminServiceProvider.php +│   │   ├── resources +│   │   │   └── views +│   │   │   ├── groups +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── group-types +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── layouts +│   │   │   │   └── admin.blade.php +│   │   │   ├── permissions +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── roles +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   ├── index.blade.php +│   │   │   │   └── manage-permissions.blade.php +│   │   │   ├── stores +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   ├── index.blade.php +│   │   │   │   └── manage-groups.blade.php +│   │   │   └── users +│   │   │   ├── create.blade.php +│   │   │   ├── edit.blade.php +│   │   │   ├── index.blade.alt.php +│   │   │   ├── index.blade.php +│   │   │   └── manage-roles.blade.php +│   │   └── routes +│   │   └── web.php +│   ├── Api +│   │   ├── config +│   │   │   └── api.php +│   │   ├── Http +│   │   │   ├── Controllers +│   │   │   │   ├── BaseApiController.php +│   │   │   │   └── v1 +│   │   │   │   ├── AuthController.php +│   │   │   │   ├── Cafe +│   │   │   │   │   └── MenuController.php +│   │   │   │   ├── Loyalty +│   │   │   │   │   └── LoyaltyController.php +│   │   │   │   ├── Management +│   │   │   │   │   └── ReportingController.php +│   │   │   │   ├── Sbux +│   │   │   │   │   └── SbuxController.php +│   │   │   │   └── Trading +│   │   │   │   └── DeskController.php +│   │   │   └── Middleware +│   │   │   └── ApiVersioning.php +│   │   ├── Providers +│   │   │   └── ApiServiceProvider.php +│   │   └── routes +│   │   ├── api.php +│   │   └── v1 +│   │   ├── api.php +│   │   ├── auth.php +│   │   ├── cafe.php +│   │   ├── loyalty.php +│   │   ├── management.php +│   │   ├── sbux.php +│   │   └── trading.php +│   └── DataExtraction +│   ├── Contracts +│   │   ├── DataSourceInterface.php +│   │   └── ExtractorInterface.php +│   ├── Events +│   ├── Exceptions +│   │   ├── ConnectionException.php +│   │   └── ExtractionException.php +│   ├── Jobs +│   ├── Listeners +│   ├── Providers +│   │   └── DataExtractionServiceProvider.php +│   └── Services +│   ├── ConnectionManagers +│   ├── Extractors +│   │   ├── CsvDataSource.php +│   │   └── CsvExtractor.php +│   └── Validators +├── Console +│   └── Kernel.php +├── Exceptions +│   └── Handler.php +├── Helpers +│   └── Timer.php +├── Http +│   ├── Controllers +│   │   ├── Auth +│   │   │   ├── AuthenticatedSessionController.php +│   │   │   ├── ConfirmablePasswordController.php +│   │   │   ├── EmailVerificationNotificationController.php +│   │   │   ├── EmailVerificationPromptController.php +│   │   │   ├── NewPasswordController.php +│   │   │   ├── PasswordController.php +│   │   │   ├── PasswordResetLinkController.php +│   │   │   ├── RegisteredUserController.php +│   │   │   └── VerifyEmailController.php +│   │   ├── Controller.php +│   │   └── ProfileController.php +│   ├── Kernel.php +│   ├── Middleware +│   │   ├── Authenticate.php +│   │   ├── EncryptCookies.php +│   │   ├── PreventRequestsDuringMaintenance.php +│   │   ├── RedirectIfAuthenticated.php +│   │   ├── TrimStrings.php +│   │   ├── TrustHosts.php +│   │   ├── TrustProxies.php +│   │   ├── ValidateSignature.php +│   │   └── VerifyCsrfToken.php +│   └── Requests +│   ├── Auth +│   │   └── LoginRequest.php +│   └── ProfileUpdateRequest.php +├── Models +│   ├── Group.php +│   ├── GroupType.php +│   ├── Permission.php +│   ├── Role.php +│   ├── Store.php +│   ├── UserAccessRole.php +│   └── User.php +├── Providers +│   ├── AppServiceProvider.php +│   ├── AuthServiceProvider.php +│   ├── BroadcastServiceProvider.php +│   ├── EventServiceProvider.php +│   └── RouteServiceProvider.php +└── View + └── Components + ├── AppLayout.php + └── GuestLayout.php + +54 directories, 96 files diff --git a/notes/tree.txt b/notes/tree.txt new file mode 100644 index 0000000..3a9c401 --- /dev/null +++ b/notes/tree.txt @@ -0,0 +1,153 @@ +app +├── Components +│   ├── Admin +│   │   ├── Http +│   │   │   ├── Controllers +│   │   │   │   ├── GroupsController.php +│   │   │   │   ├── GroupTypesController.php +│   │   │   │   ├── PermissionsController.php +│   │   │   │   ├── RolesController.php +│   │   │   │   ├── StoresController.php +│   │   │   │   └── UsersController.php +│   │   │   └── Middleware +│   │   ├── Providers +│   │   │   └── AdminServiceProvider.php +│   │   ├── resources +│   │   │   └── views +│   │   │   ├── groups +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── group-types +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── layouts +│   │   │   │   └── admin.blade.php +│   │   │   ├── permissions +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   └── index.blade.php +│   │   │   ├── roles +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   ├── index.blade.php +│   │   │   │   └── manage-permissions.blade.php +│   │   │   ├── stores +│   │   │   │   ├── create.blade.php +│   │   │   │   ├── edit.blade.php +│   │   │   │   ├── index.blade.php +│   │   │   │   └── manage-groups.blade.php +│   │   │   └── users +│   │   │   ├── create.blade.php +│   │   │   ├── edit.blade.php +│   │   │   ├── index.blade.alt.php +│   │   │   ├── index.blade.php +│   │   │   └── manage-roles.blade.php +│   │   └── routes +│   │   └── web.php +│   ├── Api +│   │   ├── config +│   │   │   └── api.php +│   │   ├── Http +│   │   │   ├── Controllers +│   │   │   │   ├── BaseApiController.php +│   │   │   │   └── v1 +│   │   │   │   ├── AuthController.php +│   │   │   │   ├── Cafe +│   │   │   │   │   └── MenuController.php +│   │   │   │   ├── Loyalty +│   │   │   │   │   └── LoyaltyController.php +│   │   │   │   ├── Management +│   │   │   │   │   └── ReportingController.php +│   │   │   │   ├── Sbux +│   │   │   │   │   └── SbuxController.php +│   │   │   │   └── Trading +│   │   │   │   └── DeskController.php +│   │   │   └── Middleware +│   │   │   └── ApiVersioning.php +│   │   ├── Providers +│   │   │   └── ApiServiceProvider.php +│   │   └── routes +│   │   ├── api.php +│   │   └── v1 +│   │   ├── api.php +│   │   ├── auth.php +│   │   ├── cafe.php +│   │   ├── loyalty.php +│   │   ├── management.php +│   │   ├── sbux.php +│   │   └── trading.php +│   └── DataExtraction +│   ├── Contracts +│   │   ├── DataSourceInterface.php +│   │   └── ExtractorInterface.php +│   ├── Events +│   ├── Exceptions +│   │   ├── ConnectionException.php +│   │   └── ExtractionException.php +│   ├── Jobs +│   ├── Listeners +│   ├── Providers +│   │   └── DataExtractionServiceProvider.php +│   └── Services +│   ├── ConnectionManagers +│   ├── Extractors +│   │   ├── CsvDataSource.php +│   │   └── CsvExtractor.php +│   └── Validators +├── Console +│   └── Kernel.php +├── Exceptions +│   └── Handler.php +├── Helpers +│   └── Timer.php +├── Http +│   ├── Controllers +│   │   ├── Auth +│   │   │   ├── AuthenticatedSessionController.php +│   │   │   ├── ConfirmablePasswordController.php +│   │   │   ├── EmailVerificationNotificationController.php +│   │   │   ├── EmailVerificationPromptController.php +│   │   │   ├── NewPasswordController.php +│   │   │   ├── PasswordController.php +│   │   │   ├── PasswordResetLinkController.php +│   │   │   ├── RegisteredUserController.php +│   │   │   └── VerifyEmailController.php +│   │   ├── Controller.php +│   │   └── ProfileController.php +│   ├── Kernel.php +│   ├── Middleware +│   │   ├── Authenticate.php +│   │   ├── EncryptCookies.php +│   │   ├── PreventRequestsDuringMaintenance.php +│   │   ├── RedirectIfAuthenticated.php +│   │   ├── TrimStrings.php +│   │   ├── TrustHosts.php +│   │   ├── TrustProxies.php +│   │   ├── ValidateSignature.php +│   │   └── VerifyCsrfToken.php +│   └── Requests +│   ├── Auth +│   │   └── LoginRequest.php +│   └── ProfileUpdateRequest.php +├── Models +│   ├── Group.php +│   ├── GroupType.php +│   ├── Permission.php +│   ├── Role.php +│   ├── Store.php +│   ├── UserAccessRole.php +│   └── User.php +├── Providers +│   ├── AppServiceProvider.php +│   ├── AuthServiceProvider.php +│   ├── BroadcastServiceProvider.php +│   ├── EventServiceProvider.php +│   └── RouteServiceProvider.php +└── View + └── Components + ├── AppLayout.php + └── GuestLayout.php + +54 directories, 96 files diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..92f624c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2662 @@ +{ + "name": "new-infrastructure", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@tailwindcss/forms": "^0.5.2", + "alpinejs": "^3.4.2", + "autoprefixer": "^10.4.2", + "axios": "^1.6.4", + "laravel-vite-plugin": "^1.0.0", + "postcss": "^8.4.31", + "tailwindcss": "^3.1.0", + "vite": "^5.0.0" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.30.1.tgz", + "integrity": "sha512-pSWY+EVt3rJ9fQ3IqlrEUtXh3cGqGtPDH1FQlNZehO2yYxCHEX1SPsz1M//NXwYfbTlcKr9WObLnJX9FsS9K1Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.30.1.tgz", + "integrity": "sha512-/NA2qXxE3D/BRjOJM8wQblmArQq1YoBVJjrjoTSBS09jgUisq7bqxNHJ8kjCHeV21W/9WDGwJEWSN0KQ2mtD/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.30.1.tgz", + "integrity": "sha512-r7FQIXD7gB0WJ5mokTUgUWPl0eYIH0wnxqeSAhuIwvnnpjdVB8cRRClyKLQr7lgzjctkbp5KmswWszlwYln03Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.30.1.tgz", + "integrity": "sha512-x78BavIwSH6sqfP2xeI1hd1GpHL8J4W2BXcVM/5KYKoAD3nNsfitQhvWSw+TFtQTLZ9OmlF+FEInEHyubut2OA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.30.1.tgz", + "integrity": "sha512-HYTlUAjbO1z8ywxsDFWADfTRfTIIy/oUlfIDmlHYmjUP2QRDTzBuWXc9O4CXM+bo9qfiCclmHk1x4ogBjOUpUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.30.1.tgz", + "integrity": "sha512-1MEdGqogQLccphhX5myCJqeGNYTNcmTyaic9S7CG3JhwuIByJ7J05vGbZxsizQthP1xpVx7kd3o31eOogfEirw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.30.1.tgz", + "integrity": "sha512-PaMRNBSqCx7K3Wc9QZkFx5+CX27WFpAMxJNiYGAXfmMIKC7jstlr32UhTgK6T07OtqR+wYlWm9IxzennjnvdJg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.30.1.tgz", + "integrity": "sha512-B8Rcyj9AV7ZlEFqvB5BubG5iO6ANDsRKlhIxySXcF1axXYUyqwBok+XZPgIYGBgs7LDXfWfifxhw0Ik57T0Yug==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.30.1.tgz", + "integrity": "sha512-hqVyueGxAj3cBKrAI4aFHLV+h0Lv5VgWZs9CUGqr1z0fZtlADVV1YPOij6AhcK5An33EXaxnDLmJdQikcn5NEw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.30.1.tgz", + "integrity": "sha512-i4Ab2vnvS1AE1PyOIGp2kXni69gU2DAUVt6FSXeIqUCPIR3ZlheMW3oP2JkukDfu3PsexYRbOiJrY+yVNSk9oA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.30.1.tgz", + "integrity": "sha512-fARcF5g296snX0oLGkVxPmysetwUk2zmHcca+e9ObOovBR++9ZPOhqFUM61UUZ2EYpXVPN1redgqVoBB34nTpQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.30.1.tgz", + "integrity": "sha512-GLrZraoO3wVT4uFXh67ElpwQY0DIygxdv0BNW9Hkm3X34wu+BkqrDrkcsIapAY+N2ATEbvak0XQ9gxZtCIA5Rw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.30.1.tgz", + "integrity": "sha512-0WKLaAUUHKBtll0wvOmh6yh3S0wSU9+yas923JIChfxOaaBarmb/lBKPF0w/+jTVozFnOXJeRGZ8NvOxvk/jcw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.30.1.tgz", + "integrity": "sha512-GWFs97Ruxo5Bt+cvVTQkOJ6TIx0xJDD/bMAOXWJg8TCSTEK8RnFeOeiFTxKniTc4vMIaWvCplMAFBt9miGxgkA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.30.1.tgz", + "integrity": "sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.30.1.tgz", + "integrity": "sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.30.1.tgz", + "integrity": "sha512-WabtHWiPaFF47W3PkHnjbmWawnX/aE57K47ZDT1BXTS5GgrBUEpvOzq0FI0V/UYzQJgdb8XlhVNH8/fwV8xDjw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.30.1.tgz", + "integrity": "sha512-pxHAU+Zv39hLUTdQQHUVHf4P+0C47y/ZloorHpzs2SXMRqeAWmGghzAhfOlzFHHwjvgokdFAhC4V+6kC1lRRfw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.30.1.tgz", + "integrity": "sha512-D6qjsXGcvhTjv0kI4fU8tUuBDF/Ueee4SVX79VfNDXZa64TfCW1Slkb6Z7O1p7vflqZjcmOVdZlqf8gvJxc6og==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.10.tgz", + "integrity": "sha512-utI1ONF6uf/pPNO68kmN1b8rEwNXv3czukalo8VtJH8ksIkZXr3Q3VYudZLkCsDd4Wku120uF02hYK25XGPorw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" + } + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vue/reactivity": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", + "integrity": "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/shared": "3.1.5" + } + }, + "node_modules/@vue/shared": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.5.tgz", + "integrity": "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/alpinejs": { + "version": "3.14.8", + "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.14.8.tgz", + "integrity": "sha512-wT2fuP2DXpGk/jKaglwy7S/IJpm1FD+b7U6zUrhwErjoq5h27S4dxkJEXVvhbdwyPv9U+3OkUuNLkZT4h2Kfrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/reactivity": "~3.1.1" + } + }, + "node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/autoprefixer": { + "version": "10.4.20", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz", + "integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.23.3", + "caniuse-lite": "^1.0.30001646", + "fraction.js": "^4.3.7", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001692", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001692.tgz", + "integrity": "sha512-A95VKan0kdtrsnMubMKxEKUKImOPSuCpYgxSQBo036P5YYgVIcOYJEgt/txJWqObiRQeISNCfef9nvlQ0vbV7A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.80", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.80.tgz", + "integrity": "sha512-LTrKpW0AqIuHwmlVNV+cjFYTnXtM9K37OGhpe0ZI10ScPSxqVSryZHIY3WnCS5NSYbBODRTZyhRMS2h5FAEqAw==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fastq": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz", + "integrity": "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fraction.js": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", + "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/laravel-vite-plugin": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.1.1.tgz", + "integrity": "sha512-HMZXpoSs1OR+7Lw1+g4Iy/s3HF3Ldl8KxxYT2Ot8pEB4XB/QRuZeWgDYJdu552UN03YRSRNK84CLC9NzYRtncA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.1.0" + }, + "bin": { + "clean-orphaned-assets": "bin/clean.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "license": "MIT", + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true, + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.30.1.tgz", + "integrity": "sha512-mlJ4glW020fPuLi7DkM/lN97mYEZGWeqBnrljzN0gs7GLctqX3lNWxKQ7Gl712UAX+6fog/L3jh4gb7R6aVi3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.30.1", + "@rollup/rollup-android-arm64": "4.30.1", + "@rollup/rollup-darwin-arm64": "4.30.1", + "@rollup/rollup-darwin-x64": "4.30.1", + "@rollup/rollup-freebsd-arm64": "4.30.1", + "@rollup/rollup-freebsd-x64": "4.30.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.30.1", + "@rollup/rollup-linux-arm-musleabihf": "4.30.1", + "@rollup/rollup-linux-arm64-gnu": "4.30.1", + "@rollup/rollup-linux-arm64-musl": "4.30.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.30.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.30.1", + "@rollup/rollup-linux-riscv64-gnu": "4.30.1", + "@rollup/rollup-linux-s390x-gnu": "4.30.1", + "@rollup/rollup-linux-x64-gnu": "4.30.1", + "@rollup/rollup-linux-x64-musl": "4.30.1", + "@rollup/rollup-win32-arm64-msvc": "4.30.1", + "@rollup/rollup-win32-ia32-msvc": "4.30.1", + "@rollup/rollup-win32-x64-msvc": "4.30.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz", + "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.6", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/update-browserslist-db": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", + "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "5.4.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz", + "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.2.0.tgz", + "integrity": "sha512-kz18NW79x0IHbxRSHm0jttP4zoO9P9gXh+n6UTwlNKnviTTEpOlum6oS9SmecrTtSr+muHEn5TUuC75UovQzcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yaml": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..31208d1 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "@tailwindcss/forms": "^0.5.2", + "alpinejs": "^3.4.2", + "autoprefixer": "^10.4.2", + "axios": "^1.6.4", + "laravel-vite-plugin": "^1.0.0", + "postcss": "^8.4.31", + "tailwindcss": "^3.1.0", + "vite": "^5.0.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..bc86714 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,32 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..49c0612 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/images/MurgadoAutomotive.jpeg b/public/images/MurgadoAutomotive.jpeg new file mode 100644 index 0000000..134bbb0 Binary files /dev/null and b/public/images/MurgadoAutomotive.jpeg differ diff --git a/public/images/WormRanch.webp b/public/images/WormRanch.webp new file mode 100644 index 0000000..36d76cc Binary files /dev/null and b/public/images/WormRanch.webp differ diff --git a/public/images/murgado_1200x800.jpg b/public/images/murgado_1200x800.jpg new file mode 100755 index 0000000..b951ce4 Binary files /dev/null and b/public/images/murgado_1200x800.jpg differ diff --git a/public/images/pawpaw_logo (Copy).png b/public/images/pawpaw_logo (Copy).png new file mode 100644 index 0000000..9736a25 Binary files /dev/null and b/public/images/pawpaw_logo (Copy).png differ diff --git a/public/images/pawpaw_logo.png b/public/images/pawpaw_logo.png new file mode 100644 index 0000000..146b201 Binary files /dev/null and b/public/images/pawpaw_logo.png differ diff --git a/public/images/pawpaw_logo.xcf b/public/images/pawpaw_logo.xcf new file mode 100644 index 0000000..598c75a Binary files /dev/null and b/public/images/pawpaw_logo.xcf differ diff --git a/public/images/pawpaw_logo_black.png b/public/images/pawpaw_logo_black.png new file mode 100644 index 0000000..9736a25 Binary files /dev/null and b/public/images/pawpaw_logo_black.png differ diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..1d69f3a --- /dev/null +++ b/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/resources/css/app.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..a8093be --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1,7 @@ +import './bootstrap'; + +import Alpine from 'alpinejs'; + +window.Alpine = Alpine; + +Alpine.start(); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js new file mode 100644 index 0000000..846d350 --- /dev/null +++ b/resources/js/bootstrap.js @@ -0,0 +1,32 @@ +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// import Pusher from 'pusher-js'; +// window.Pusher = Pusher; + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: import.meta.env.VITE_PUSHER_APP_KEY, +// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, +// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, +// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', +// enabledTransports: ['ws', 'wss'], +// }); diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php new file mode 100644 index 0000000..3d38186 --- /dev/null +++ b/resources/views/auth/confirm-password.blade.php @@ -0,0 +1,27 @@ + +
+ {{ __('This is a secure area of the application. Please confirm your password before continuing.') }} +
+ +
+ @csrf + + +
+ + + + + +
+ +
+ + {{ __('Confirm') }} + +
+
+
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php new file mode 100644 index 0000000..cb32e08 --- /dev/null +++ b/resources/views/auth/forgot-password.blade.php @@ -0,0 +1,25 @@ + +
+ {{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }} +
+ + + + +
+ @csrf + + +
+ + + +
+ +
+ + {{ __('Email Password Reset Link') }} + +
+
+
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..78b684f --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,47 @@ + + + + +
+ @csrf + + +
+ + + +
+ + +
+ + + + + +
+ + +
+ +
+ +
+ @if (Route::has('password.request')) + + {{ __('Forgot your password?') }} + + @endif + + + {{ __('Log in') }} + +
+
+
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php new file mode 100644 index 0000000..a857242 --- /dev/null +++ b/resources/views/auth/register.blade.php @@ -0,0 +1,52 @@ + +
+ @csrf + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ +
+ + {{ __('Already registered?') }} + + + + {{ __('Register') }} + +
+
+
diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php new file mode 100644 index 0000000..a6494cc --- /dev/null +++ b/resources/views/auth/reset-password.blade.php @@ -0,0 +1,39 @@ + +
+ @csrf + + + + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + + + +
+ +
+ + {{ __('Reset Password') }} + +
+
+
diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php new file mode 100644 index 0000000..eaf811d --- /dev/null +++ b/resources/views/auth/verify-email.blade.php @@ -0,0 +1,31 @@ + +
+ {{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }} +
+ + @if (session('status') == 'verification-link-sent') +
+ {{ __('A new verification link has been sent to the email address you provided during registration.') }} +
+ @endif + +
+
+ @csrf + +
+ + {{ __('Resend Verification Email') }} + +
+
+ +
+ @csrf + + +
+
+
diff --git a/resources/views/components/alert.blade.php b/resources/views/components/alert.blade.php new file mode 100644 index 0000000..9b0c189 --- /dev/null +++ b/resources/views/components/alert.blade.php @@ -0,0 +1,12 @@ +@props(['type' => 'info', 'message']) + +@if($message) +
merge([ + 'class' => 'px-4 py-3 rounded relative mb-4 ' . + ($type === 'success' ? 'bg-green-100 border border-green-400 text-green-700' : + ($type === 'error' ? 'bg-red-100 border border-red-400 text-red-700' : + 'bg-blue-100 border border-blue-400 text-blue-700')) + ]) }}> + {{ $message }} +
+@endif diff --git a/resources/views/components/application-logo.blade.php b/resources/views/components/application-logo.blade.php new file mode 100644 index 0000000..2cf867f --- /dev/null +++ b/resources/views/components/application-logo.blade.php @@ -0,0 +1,7 @@ +{{----}} +{{-- --}} +{{----}} + +{{-- For an image --}} +Your Company Logo + diff --git a/resources/views/components/auth-check.blade.php b/resources/views/components/auth-check.blade.php new file mode 100644 index 0000000..d1e48b1 --- /dev/null +++ b/resources/views/components/auth-check.blade.php @@ -0,0 +1,5 @@ +@props(['permission']) + +@if(auth()->user()->checkResourcePermission($permission['type'], $permission['value'], $permission['action'])) + {{ $slot }} +@endif diff --git a/resources/views/components/auth-session-status.blade.php b/resources/views/components/auth-session-status.blade.php new file mode 100644 index 0000000..c4bd6e2 --- /dev/null +++ b/resources/views/components/auth-session-status.blade.php @@ -0,0 +1,7 @@ +@props(['status']) + +@if ($status) +
merge(['class' => 'font-medium text-sm text-green-600']) }}> + {{ $status }} +
+@endif diff --git a/resources/views/components/danger-button.blade.php b/resources/views/components/danger-button.blade.php new file mode 100644 index 0000000..d17d288 --- /dev/null +++ b/resources/views/components/danger-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/dropdown-link.blade.php b/resources/views/components/dropdown-link.blade.php new file mode 100644 index 0000000..e0f8ce1 --- /dev/null +++ b/resources/views/components/dropdown-link.blade.php @@ -0,0 +1 @@ +merge(['class' => 'block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }} diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php new file mode 100644 index 0000000..a46f7c8 --- /dev/null +++ b/resources/views/components/dropdown.blade.php @@ -0,0 +1,35 @@ +@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white']) + +@php +$alignmentClasses = match ($align) { + 'left' => 'ltr:origin-top-left rtl:origin-top-right start-0', + 'top' => 'origin-top', + default => 'ltr:origin-top-right rtl:origin-top-left end-0', +}; + +$width = match ($width) { + '48' => 'w-48', + default => $width, +}; +@endphp + +
+
+ {{ $trigger }} +
+ + +
diff --git a/resources/views/components/form.blade.php b/resources/views/components/form.blade.php new file mode 100644 index 0000000..90bf3d4 --- /dev/null +++ b/resources/views/components/form.blade.php @@ -0,0 +1,22 @@ +@props([ + 'method' => 'POST', + 'action', + 'onsubmit' => '' +]) + +
+ @if(!in_array(strtoupper($method), ['GET', 'POST'])) + @method($method) + @endif + + @if(strtoupper($method) !== 'GET') + @csrf + @endif + + {{ $slot }} +
diff --git a/resources/views/components/input-error.blade.php b/resources/views/components/input-error.blade.php new file mode 100644 index 0000000..9e6da21 --- /dev/null +++ b/resources/views/components/input-error.blade.php @@ -0,0 +1,9 @@ +@props(['messages']) + +@if ($messages) +
    merge(['class' => 'text-sm text-red-600 space-y-1']) }}> + @foreach ((array) $messages as $message) +
  • {{ $message }}
  • + @endforeach +
+@endif diff --git a/resources/views/components/input-field.blade.php b/resources/views/components/input-field.blade.php new file mode 100644 index 0000000..2918ae3 --- /dev/null +++ b/resources/views/components/input-field.blade.php @@ -0,0 +1,22 @@ +@props(['type' => 'text', 'label', 'name', 'value' => null]) + +
+ @if(isset($label)) + + @endif + + merge([ + 'class' => 'shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline ' . + ($errors->has($name) ? 'border-red-500' : '') + ]) }}> + + @error($name) +

{{ $message }}

+ @enderror +
diff --git a/resources/views/components/input-label.blade.php b/resources/views/components/input-label.blade.php new file mode 100644 index 0000000..1cc65e2 --- /dev/null +++ b/resources/views/components/input-label.blade.php @@ -0,0 +1,5 @@ +@props(['value']) + + diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php new file mode 100644 index 0000000..70704c1 --- /dev/null +++ b/resources/views/components/modal.blade.php @@ -0,0 +1,78 @@ +@props([ + 'name', + 'show' => false, + 'maxWidth' => '2xl' +]) + +@php +$maxWidth = [ + 'sm' => 'sm:max-w-sm', + 'md' => 'sm:max-w-md', + 'lg' => 'sm:max-w-lg', + 'xl' => 'sm:max-w-xl', + '2xl' => 'sm:max-w-2xl', +][$maxWidth]; +@endphp + +
+
+
+
+ +
+ {{ $slot }} +
+
diff --git a/resources/views/components/nav-link.blade.php b/resources/views/components/nav-link.blade.php new file mode 100644 index 0000000..5c101a2 --- /dev/null +++ b/resources/views/components/nav-link.blade.php @@ -0,0 +1,11 @@ +@props(['active']) + +@php +$classes = ($active ?? false) + ? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out' + : 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out'; +@endphp + +merge(['class' => $classes]) }}> + {{ $slot }} + diff --git a/resources/views/components/primary-button.blade.php b/resources/views/components/primary-button.blade.php new file mode 100644 index 0000000..d71f0b6 --- /dev/null +++ b/resources/views/components/primary-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/responsive-nav-link.blade.php b/resources/views/components/responsive-nav-link.blade.php new file mode 100644 index 0000000..43b91e7 --- /dev/null +++ b/resources/views/components/responsive-nav-link.blade.php @@ -0,0 +1,11 @@ +@props(['active']) + +@php +$classes = ($active ?? false) + ? 'block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out' + : 'block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out'; +@endphp + +merge(['class' => $classes]) }}> + {{ $slot }} + diff --git a/resources/views/components/secondary-button.blade.php b/resources/views/components/secondary-button.blade.php new file mode 100644 index 0000000..b32b69f --- /dev/null +++ b/resources/views/components/secondary-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/text-input.blade.php b/resources/views/components/text-input.blade.php new file mode 100644 index 0000000..da1b12d --- /dev/null +++ b/resources/views/components/text-input.blade.php @@ -0,0 +1,3 @@ +@props(['disabled' => false]) + +merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']) }}> diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..66028f2 --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,17 @@ + + +

+ {{ __('Dashboard') }} +

+
+ +
+
+
+
+ {{ __("You're logged in!") }} +
+
+
+
+
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..c5ff315 --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,36 @@ + + + + + + + + {{ config('app.name', 'Laravel') }} + + + + + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+ @include('layouts.navigation') + + + @isset($header) +
+
+ {{ $header }} +
+
+ @endisset + + +
+ {{ $slot }} +
+
+ + diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php new file mode 100644 index 0000000..11feb47 --- /dev/null +++ b/resources/views/layouts/guest.blade.php @@ -0,0 +1,30 @@ + + + + + + + + {{ config('app.name', 'Laravel') }} + + + + + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+ + + +
+ +
+ {{ $slot }} +
+
+ + diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php new file mode 100644 index 0000000..c2d3a65 --- /dev/null +++ b/resources/views/layouts/navigation.blade.php @@ -0,0 +1,100 @@ + diff --git a/resources/views/profile/edit.blade.php b/resources/views/profile/edit.blade.php new file mode 100644 index 0000000..e0e1d38 --- /dev/null +++ b/resources/views/profile/edit.blade.php @@ -0,0 +1,29 @@ + + +

+ {{ __('Profile') }} +

+
+ +
+
+
+
+ @include('profile.partials.update-profile-information-form') +
+
+ +
+
+ @include('profile.partials.update-password-form') +
+
+ +
+
+ @include('profile.partials.delete-user-form') +
+
+
+
+
diff --git a/resources/views/profile/partials/delete-user-form.blade.php b/resources/views/profile/partials/delete-user-form.blade.php new file mode 100644 index 0000000..edeeb4a --- /dev/null +++ b/resources/views/profile/partials/delete-user-form.blade.php @@ -0,0 +1,55 @@ +
+
+

+ {{ __('Delete Account') }} +

+ +

+ {{ __('Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.') }} +

+
+ + {{ __('Delete Account') }} + + +
+ @csrf + @method('delete') + +

+ {{ __('Are you sure you want to delete your account?') }} +

+ +

+ {{ __('Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.') }} +

+ +
+ + + + + +
+ +
+ + {{ __('Cancel') }} + + + + {{ __('Delete Account') }} + +
+
+
+
diff --git a/resources/views/profile/partials/update-password-form.blade.php b/resources/views/profile/partials/update-password-form.blade.php new file mode 100644 index 0000000..eaca1ac --- /dev/null +++ b/resources/views/profile/partials/update-password-form.blade.php @@ -0,0 +1,48 @@ +
+
+

+ {{ __('Update Password') }} +

+ +

+ {{ __('Ensure your account is using a long, random password to stay secure.') }} +

+
+ +
+ @csrf + @method('put') + +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ {{ __('Save') }} + + @if (session('status') === 'password-updated') +

{{ __('Saved.') }}

+ @endif +
+
+
diff --git a/resources/views/profile/partials/update-profile-information-form.blade.php b/resources/views/profile/partials/update-profile-information-form.blade.php new file mode 100644 index 0000000..5ae3d35 --- /dev/null +++ b/resources/views/profile/partials/update-profile-information-form.blade.php @@ -0,0 +1,64 @@ +
+
+

+ {{ __('Profile Information') }} +

+ +

+ {{ __("Update your account's profile information and email address.") }} +

+
+ +
+ @csrf +
+ +
+ @csrf + @method('patch') + +
+ + + +
+ +
+ + + + + @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail()) +
+

+ {{ __('Your email address is unverified.') }} + + +

+ + @if (session('status') === 'verification-link-sent') +

+ {{ __('A new verification link has been sent to your email address.') }} +

+ @endif +
+ @endif +
+ +
+ {{ __('Save') }} + + @if (session('status') === 'profile-updated') +

{{ __('Saved.') }}

+ @endif +
+
+
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..4f92a00 --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,43 @@ + + + + + + + Laravel + + + + + + + + + +
+ @if (Route::has('login')) +
+ @auth + Dashboard + @else + Log in + + @if (Route::has('register')) + Register + @endif + @endauth +
+ @endif + +
+
+ Murgado Admin Dashboard +
+
+ + +
+ + diff --git a/resources/views/welcome.orig.blade.php b/resources/views/welcome.orig.blade.php new file mode 100644 index 0000000..a34fa1b --- /dev/null +++ b/resources/views/welcome.orig.blade.php @@ -0,0 +1,133 @@ + + + + + + + Laravel + + + + + + + + + + + + diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..889937e --- /dev/null +++ b/routes/api.php @@ -0,0 +1,19 @@ +get('/user', function (Request $request) { + return $request->user(); +}); diff --git a/routes/auth.php b/routes/auth.php new file mode 100644 index 0000000..3926ecf --- /dev/null +++ b/routes/auth.php @@ -0,0 +1,59 @@ +group(function () { + Route::get('register', [RegisteredUserController::class, 'create']) + ->name('register'); + + Route::post('register', [RegisteredUserController::class, 'store']); + + Route::get('login', [AuthenticatedSessionController::class, 'create']) + ->name('login'); + + Route::post('login', [AuthenticatedSessionController::class, 'store']); + + Route::get('forgot-password', [PasswordResetLinkController::class, 'create']) + ->name('password.request'); + + Route::post('forgot-password', [PasswordResetLinkController::class, 'store']) + ->name('password.email'); + + Route::get('reset-password/{token}', [NewPasswordController::class, 'create']) + ->name('password.reset'); + + Route::post('reset-password', [NewPasswordController::class, 'store']) + ->name('password.store'); +}); + +Route::middleware('auth')->group(function () { + Route::get('verify-email', EmailVerificationPromptController::class) + ->name('verification.notice'); + + Route::get('verify-email/{id}/{hash}', VerifyEmailController::class) + ->middleware(['signed', 'throttle:6,1']) + ->name('verification.verify'); + + Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store']) + ->middleware('throttle:6,1') + ->name('verification.send'); + + Route::get('confirm-password', [ConfirmablePasswordController::class, 'show']) + ->name('password.confirm'); + + Route::post('confirm-password', [ConfirmablePasswordController::class, 'store']); + + Route::put('password', [PasswordController::class, 'update'])->name('password.update'); + + Route::post('logout', [AuthenticatedSessionController::class, 'destroy']) + ->name('logout'); +}); diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..5d451e1 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..e05f4c9 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..74bb7ca --- /dev/null +++ b/routes/web.php @@ -0,0 +1,20 @@ +middleware(['auth', 'verified'])->name('dashboard'); + +Route::middleware('auth')->group(function () { + Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); + Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); + Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); +}); + +require __DIR__.'/auth.php'; diff --git a/satisfiable b/satisfiable new file mode 100644 index 0000000..e69de29 diff --git a/storage/app/.gitignore b/storage/app/.gitignore new file mode 100644 index 0000000..8f4803c --- /dev/null +++ b/storage/app/.gitignore @@ -0,0 +1,3 @@ +* +!public/ +!.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..c29eb1a --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,21 @@ +import defaultTheme from 'tailwindcss/defaultTheme'; +import forms from '@tailwindcss/forms'; + +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', + './storage/framework/views/*.php', + './resources/views/**/*.blade.php', + ], + + theme: { + extend: { + fontFamily: { + sans: ['Figtree', ...defaultTheme.fontFamily.sans], + }, + }, + }, + + plugins: [forms], +}; diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..cc68301 --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,21 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php new file mode 100644 index 0000000..13dcb7c --- /dev/null +++ b/tests/Feature/Auth/AuthenticationTest.php @@ -0,0 +1,54 @@ +get('/login'); + + $response->assertStatus(200); + } + + public function test_users_can_authenticate_using_the_login_screen(): void + { + $user = User::factory()->create(); + + $response = $this->post('/login', [ + 'email' => $user->email, + 'password' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(route('dashboard', absolute: false)); + } + + public function test_users_can_not_authenticate_with_invalid_password(): void + { + $user = User::factory()->create(); + + $this->post('/login', [ + 'email' => $user->email, + 'password' => 'wrong-password', + ]); + + $this->assertGuest(); + } + + public function test_users_can_logout(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/logout'); + + $this->assertGuest(); + $response->assertRedirect('/'); + } +} diff --git a/tests/Feature/Auth/EmailVerificationTest.php b/tests/Feature/Auth/EmailVerificationTest.php new file mode 100644 index 0000000..705570b --- /dev/null +++ b/tests/Feature/Auth/EmailVerificationTest.php @@ -0,0 +1,58 @@ +unverified()->create(); + + $response = $this->actingAs($user)->get('/verify-email'); + + $response->assertStatus(200); + } + + public function test_email_can_be_verified(): void + { + $user = User::factory()->unverified()->create(); + + Event::fake(); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1($user->email)] + ); + + $response = $this->actingAs($user)->get($verificationUrl); + + Event::assertDispatched(Verified::class); + $this->assertTrue($user->fresh()->hasVerifiedEmail()); + $response->assertRedirect(route('dashboard', absolute: false).'?verified=1'); + } + + public function test_email_is_not_verified_with_invalid_hash(): void + { + $user = User::factory()->unverified()->create(); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1('wrong-email')] + ); + + $this->actingAs($user)->get($verificationUrl); + + $this->assertFalse($user->fresh()->hasVerifiedEmail()); + } +} diff --git a/tests/Feature/Auth/PasswordConfirmationTest.php b/tests/Feature/Auth/PasswordConfirmationTest.php new file mode 100644 index 0000000..ff85721 --- /dev/null +++ b/tests/Feature/Auth/PasswordConfirmationTest.php @@ -0,0 +1,44 @@ +create(); + + $response = $this->actingAs($user)->get('/confirm-password'); + + $response->assertStatus(200); + } + + public function test_password_can_be_confirmed(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'password', + ]); + + $response->assertRedirect(); + $response->assertSessionHasNoErrors(); + } + + public function test_password_is_not_confirmed_with_invalid_password(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'wrong-password', + ]); + + $response->assertSessionHasErrors(); + } +} diff --git a/tests/Feature/Auth/PasswordResetTest.php b/tests/Feature/Auth/PasswordResetTest.php new file mode 100644 index 0000000..aa50350 --- /dev/null +++ b/tests/Feature/Auth/PasswordResetTest.php @@ -0,0 +1,73 @@ +get('/forgot-password'); + + $response->assertStatus(200); + } + + public function test_reset_password_link_can_be_requested(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class); + } + + public function test_reset_password_screen_can_be_rendered(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) { + $response = $this->get('/reset-password/'.$notification->token); + + $response->assertStatus(200); + + return true; + }); + } + + public function test_password_can_be_reset_with_valid_token(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { + $response = $this->post('/reset-password', [ + 'token' => $notification->token, + 'email' => $user->email, + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect(route('login')); + + return true; + }); + } +} diff --git a/tests/Feature/Auth/PasswordUpdateTest.php b/tests/Feature/Auth/PasswordUpdateTest.php new file mode 100644 index 0000000..ca28c6c --- /dev/null +++ b/tests/Feature/Auth/PasswordUpdateTest.php @@ -0,0 +1,51 @@ +create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->put('/password', [ + 'current_password' => 'password', + 'password' => 'new-password', + 'password_confirmation' => 'new-password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $this->assertTrue(Hash::check('new-password', $user->refresh()->password)); + } + + public function test_correct_password_must_be_provided_to_update_password(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->put('/password', [ + 'current_password' => 'wrong-password', + 'password' => 'new-password', + 'password_confirmation' => 'new-password', + ]); + + $response + ->assertSessionHasErrorsIn('updatePassword', 'current_password') + ->assertRedirect('/profile'); + } +} diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php new file mode 100644 index 0000000..1489d0e --- /dev/null +++ b/tests/Feature/Auth/RegistrationTest.php @@ -0,0 +1,31 @@ +get('/register'); + + $response->assertStatus(200); + } + + public function test_new_users_can_register(): void + { + $response = $this->post('/register', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(route('dashboard', absolute: false)); + } +} diff --git a/tests/Feature/Components/Api/ApiTestCase.php b/tests/Feature/Components/Api/ApiTestCase.php new file mode 100644 index 0000000..09c9a9f --- /dev/null +++ b/tests/Feature/Components/Api/ApiTestCase.php @@ -0,0 +1,63 @@ +runCustomMigrations(); + } + /** + * Create an authenticated user for testing. + * + * @param array $attributes + * @return User + */ + protected function createAuthenticatedUser(array $attributes = []): User + { + $user = User::factory()->create($attributes); + Sanctum::actingAs($user); + return $user; + } + + /** + * Get common headers for API requests. + * + * @param string $version + * @return array + */ + protected function getHeaders(string $version = 'v1'): array + { + return [ + 'Accept' => 'application/json', + 'X-API-Version' => $version, + ]; + } + + /** + * Assert API response structure is valid. + * + * @param array $response + * @return void + */ + protected function assertValidApiResponse(array $response): void + { + $this->assertArrayHasKey('success', $response); + $this->assertArrayHasKey('meta', $response); + $this->assertArrayHasKey('timestamp', $response['meta']); + $this->assertArrayHasKey('request_id', $response['meta']); + $this->assertArrayHasKey('api_version', $response['meta']); + } +} diff --git a/tests/Feature/Components/Api/Traits/HandlesCustomSchemas.php b/tests/Feature/Components/Api/Traits/HandlesCustomSchemas.php new file mode 100644 index 0000000..4facedd --- /dev/null +++ b/tests/Feature/Components/Api/Traits/HandlesCustomSchemas.php @@ -0,0 +1,58 @@ +cleanSchemas(); + + $paths = [ + 'database/migrations/public', + 'database/migrations/auth', + 'database/migrations/org', + ]; + + foreach ($paths as $path) { + $this->artisan('migrate', [ + '--path' => $path, + '--database' => 'pgsql', + '--force' => true, + ]); + } + } +} diff --git a/tests/Feature/Components/Api/v1/AuthControllerTest.php b/tests/Feature/Components/Api/v1/AuthControllerTest.php new file mode 100644 index 0000000..2a6d3b4 --- /dev/null +++ b/tests/Feature/Components/Api/v1/AuthControllerTest.php @@ -0,0 +1,26 @@ +create([ + 'email' => 'test@example.com', + 'password' => bcrypt('password'), + ]); + + $response = $this->postJson('/api/v1/login', [ + 'email' => 'test@example.com', + 'password' => 'password', + 'device_name' => 'test_device', + ], $this->getHeaders()); + + $response->assertStatus(200); + $this->assertValidApiResponse($response->json()); + } +} diff --git a/tests/Feature/CsvExtractionTest.php b/tests/Feature/CsvExtractionTest.php new file mode 100644 index 0000000..b6d1082 --- /dev/null +++ b/tests/Feature/CsvExtractionTest.php @@ -0,0 +1,173 @@ +testCsvPath = Storage::path('test_data.csv'); + file_put_contents($this->testCsvPath, $csvContent); + + // Invalid CSV (mismatched columns) + $invalidCsvContent = "name,age,city\n" . + "John Doe,30\n" . + "Jane Smith,25,Miami,extra\n" . + "Bob Johnson,invalid_age,New York"; + + $this->invalidCsvPath = Storage::path('invalid_test_data.csv'); + file_put_contents($this->invalidCsvPath, $invalidCsvContent); + } + + public function test_can_extract_data_from_csv() + { + // Create our data source + $dataSource = new CsvDataSource( + filePath: $this->testCsvPath, + identifier: 'test_csv' + ); + + // Create our extractor + $extractor = new CsvExtractor(); + + // Test connection + $this->assertTrue($dataSource->connect()); + $this->assertTrue($dataSource->isConnected()); + + // Test extraction + $data = $extractor->extract($dataSource); + + // Verify the data + $this->assertIsArray($data); + $this->assertCount(3, $data); + $this->assertEquals([ + 'name' => 'John Doe', + 'age' => '30', + 'city' => 'Chicago' + ], $data[0]); + + // Test disconnection + $dataSource->disconnect(); + $this->assertFalse($dataSource->isConnected()); + } + + public function test_extractor_supports_correct_source() + { + $dataSource = new CsvDataSource( + filePath: $this->testCsvPath, + identifier: 'test_csv' + ); + + $extractor = new CsvExtractor(); + + $this->assertTrue($extractor->supports($dataSource)); + } + + public function test_last_extraction_is_maintained() + { + $dataSource = new CsvDataSource( + filePath: $this->testCsvPath, + identifier: 'test_csv' + ); + + $extractor = new CsvExtractor(); + + $this->assertNull($extractor->getLastExtraction()); + + $data = $extractor->extract($dataSource); + + $this->assertEquals($data, $extractor->getLastExtraction()); + } + +// protected function tearDown(): void +// { +// // Clean up our test file +// if (file_exists($this->testCsvPath)) { +// unlink($this->testCsvPath); +// } +// +// parent::tearDown(); +// } + + public function test_throws_exceptions_for_nonexistent_file() + { + $this->expectException(ConnectionException::class); + $dataSource = new CsvDataSource( + filePath: 'nonexistent.csv', + identifier: 'test.csv' + ); + + $dataSource->connect(); + } + + public function test_throws_exception_for_invalid_file_format() + { + // Create a text file with .txt extension + $textPath = Storage::path('test.txt'); + file_put_contents($textPath, 'This is not a CSV'); + $this->expectException(ConnectionException::class); + $dataSource = new CsvDataSource( + filePath: $textPath, + identifier: 'test_txt' + ); + $dataSource->connect(); + } + + public function test_handles_malformed_csv_data() + { + $dataSource = new CsvDataSource( + filePath: $this->invalidCsvPath, + identifier: 'invalid_csv' + ); + $extractor = new CsvExtractor(); + $dataSource->connect(); + try { + $data = $extractor->extract($dataSource); + // Verify we can still process the file even with issues + $this->assertIsArray($data); + // Check that we have all rows (even problematic ones) + $this->assertCount(3, $data); + // First row should have null for missing city + $this->assertArrayHasKey('city', $data[0]); + $this->assertNull($data[0]['city']); + // Verify we captured the age validation issue + $this->assertEquals('invalid_age', $data[2]['age']); + } catch (ExtractionException $e){ + $this->fail("Should handle malformed CSV without throwing exception"); + } + } + + protected function tearDown(): void + { + // Clean up our test files + if (file_exists($this->testCsvPath)) { + unlink($this->testCsvPath); + } + if (file_exists($this->invalidCsvPath)) { + unlink($this->invalidCsvPath); + } + parent::tearDown(); + } + +} diff --git a/tests/Feature/DataExtractionProviderTest.php b/tests/Feature/DataExtractionProviderTest.php new file mode 100644 index 0000000..cbfada6 --- /dev/null +++ b/tests/Feature/DataExtractionProviderTest.php @@ -0,0 +1,21 @@ +assertInstanceOf(CsvExtractor::class, $extractor); + + // Test the named binding + $csvExtractor = app('extractor.csv'); + $this->assertInstanceOf(CsvExtractor::class, $csvExtractor); + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..8364a84 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,19 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/Feature/ProfileTest.php b/tests/Feature/ProfileTest.php new file mode 100644 index 0000000..252fdcc --- /dev/null +++ b/tests/Feature/ProfileTest.php @@ -0,0 +1,99 @@ +create(); + + $response = $this + ->actingAs($user) + ->get('/profile'); + + $response->assertOk(); + } + + public function test_profile_information_can_be_updated(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->patch('/profile', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $user->refresh(); + + $this->assertSame('Test User', $user->name); + $this->assertSame('test@example.com', $user->email); + $this->assertNull($user->email_verified_at); + } + + public function test_email_verification_status_is_unchanged_when_the_email_address_is_unchanged(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->patch('/profile', [ + 'name' => 'Test User', + 'email' => $user->email, + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $this->assertNotNull($user->refresh()->email_verified_at); + } + + public function test_user_can_delete_their_account(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->delete('/profile', [ + 'password' => 'password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/'); + + $this->assertGuest(); + $this->assertNull($user->fresh()); + } + + public function test_correct_password_must_be_provided_to_delete_account(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->delete('/profile', [ + 'password' => 'wrong-password', + ]); + + $response + ->assertSessionHasErrorsIn('userDeletion', 'password') + ->assertRedirect('/profile'); + + $this->assertNotNull($user->fresh()); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +middleware = new ApiVersioning(); + } + + public function test_accepts_valid_version_from_route(): void + { + // Create request with route parameter + $request = new Request(); + $route = new Route('GET', '/api/v1/test', []); + $route->parameters = ['version' => 'v1']; + $request->setRouteResolver(function () use ($route) { + return $route; + }); + + // Process middleware + $response = $this->middleware->handle($request, function ($req) { + $this->assertEquals('v1', $req->route('version')); + return response()->json(['status' => 'ok']); + }); + + $this->assertEquals(200, $response->getStatusCode()); + } + + public function test_accepts_valid_version_from_accept_header(): void + { + $request = new Request(); + $request->headers->set('Accept', 'application/vnd.api.v1+json'); + $route = new Route('GET', '/api/test', []); + $request->setRouteResolver(function () use ($route) { + return $route; + }); + + $response = $this->middleware->handle($request, function ($req) { + $this->assertEquals('v1', $req->route('version')); + return response()->json(['status' => 'ok']); + }); + + $this->assertEquals(200, $response->getStatusCode()); + } + + public function test_rejects_invalid_version(): void + { + $request = new Request(); + $route = new Route('GET', '/api/v999/test', []); + $route->parameters = ['version' => 'v999']; + $request->setRouteResolver(function () use ($route) { + return $route; + }); + + $response = $this->middleware->handle($request, function ($req) { + return response()->json(['status' => 'ok']); + }); + + $this->assertEquals(400, $response->getStatusCode()); + + $content = json_decode($response->getContent(), true); + $this->assertFalse($content['success']); + $this->assertEquals('Unsupported API version', $content['message']); + } + + public function test_uses_default_version_when_not_specified(): void + { + $request = new Request(); + $route = new Route('GET', '/api/test', []); + $request->setRouteResolver(function () use ($route) { + return $route; + }); + + $response = $this->middleware->handle($request, function ($req) { + $this->assertEquals('v1', $req->route('version')); + return response()->json(['status' => 'ok']); + }); + + $this->assertEquals(200, $response->getStatusCode()); + } +} diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..5773b0c --- /dev/null +++ b/tests/Unit/ExampleTest.php @@ -0,0 +1,16 @@ +assertTrue(true); + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..421b569 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], +});