diff --git a/app/ServiceClient.php b/app/ServiceClient.php index 21edd49..be48fd5 100644 --- a/app/ServiceClient.php +++ b/app/ServiceClient.php @@ -26,7 +26,7 @@ class ServiceClient ); } - public function makeRequest($url, $method = 'GET', $body = null, $headers = [], $timeout = 300){ + public function makeRequest($url, $method = 'GET', $body = null, $headers = [], $timeout = 14400){ try { $headers = array_merge($this->headers, $headers); diff --git a/composer.json b/composer.json index 4aa6131..1c44a58 100755 --- a/composer.json +++ b/composer.json @@ -70,5 +70,11 @@ } }, "minimum-stability": "stable", - "prefer-stable": true + "prefer-stable": true, + "repositories": { + "grocery-crud": { + "type": "composer", + "url": "https://composer.grocerycrud.com/" + } + } } diff --git a/composer.lock b/composer.lock index d0ffdb7..f1e8843 100755 --- a/composer.lock +++ b/composer.lock @@ -445,16 +445,16 @@ }, { "name": "egulias/email-validator", - "version": "4.0.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" + "reference": "b115554301161fa21467629f1e1391c1936de517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517", + "reference": "b115554301161fa21467629f1e1391c1936de517", "shasum": "" }, "require": { @@ -500,7 +500,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" + "source": "https://github.com/egulias/EmailValidator/tree/4.0.3" }, "funding": [ { @@ -508,7 +508,7 @@ "type": "github" } ], - "time": "2023-10-06T06:47:41+00:00" + "time": "2024-12-27T00:36:43+00:00" }, { "name": "firebase/php-jwt", @@ -1207,16 +1207,16 @@ }, { "name": "guzzlehttp/uri-template", - "version": "v1.0.3", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/guzzle/uri-template.git", - "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c" + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c", - "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/30e286560c137526eccd4ce21b2de477ab0676d2", + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2", "shasum": "" }, "require": { @@ -1273,7 +1273,7 @@ ], "support": { "issues": "https://github.com/guzzle/uri-template/issues", - "source": "https://github.com/guzzle/uri-template/tree/v1.0.3" + "source": "https://github.com/guzzle/uri-template/tree/v1.0.4" }, "funding": [ { @@ -1289,20 +1289,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T19:50:20+00:00" + "time": "2025-02-03T10:55:03+00:00" }, { "name": "laravel/framework", - "version": "v11.34.2", + "version": "v11.41.3", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "865da6d73dd353f07a7bcbd778c55966a620121f" + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/865da6d73dd353f07a7bcbd778c55966a620121f", - "reference": "865da6d73dd353f07a7bcbd778c55966a620121f", + "url": "https://api.github.com/repos/laravel/framework/zipball/3ef433d5865f30a19b6b1be247586068399b59cc", + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc", "shasum": "" }, "require": { @@ -1323,11 +1323,12 @@ "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.2.1", + "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.2|^3.4", + "nesbot/carbon": "^2.72.6|^3.8.4", "nunomaduro/termwind": "^2.0", "php": "^8.2", "psr/container": "^1.1.1|^2.0.1", @@ -1337,7 +1338,7 @@ "symfony/console": "^7.0.3", "symfony/error-handler": "^7.0.3", "symfony/finder": "^7.0.3", - "symfony/http-foundation": "^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", @@ -1351,7 +1352,6 @@ "voku/portable-ascii": "^2.0.2" }, "conflict": { - "mockery/mockery": "1.6.8", "tightenco/collect": "<5.5.33" }, "provide": { @@ -1403,15 +1403,16 @@ "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", - "nyholm/psr7": "^1.2", "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", @@ -1443,8 +1444,8 @@ "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).", - "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "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).", @@ -1465,6 +1466,7 @@ }, "autoload": { "files": [ + "src/Illuminate/Collections/functions.php", "src/Illuminate/Collections/helpers.php", "src/Illuminate/Events/functions.php", "src/Illuminate/Filesystem/functions.php", @@ -1502,20 +1504,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-11-27T15:43:57+00:00" + "time": "2025-01-30T13:25:22+00:00" }, { "name": "laravel/prompts", - "version": "v0.3.2", + "version": "v0.3.4", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "0e0535747c6b8d6d10adca8b68293cf4517abb0f" + "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/0e0535747c6b8d6d10adca8b68293cf4517abb0f", - "reference": "0e0535747c6b8d6d10adca8b68293cf4517abb0f", + "url": "https://api.github.com/repos/laravel/prompts/zipball/abeaa2ba4294247d5409490d1ca1bc6248087011", + "reference": "abeaa2ba4294247d5409490d1ca1bc6248087011", "shasum": "" }, "require": { @@ -1529,7 +1531,7 @@ "laravel/framework": ">=10.17.0 <10.25.0" }, "require-dev": { - "illuminate/collections": "^10.0|^11.0", + "illuminate/collections": "^10.0|^11.0|^12.0", "mockery/mockery": "^1.5", "pestphp/pest": "^2.3|^3.4", "phpstan/phpstan": "^1.11", @@ -1559,38 +1561,38 @@ "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.2" + "source": "https://github.com/laravel/prompts/tree/v0.3.4" }, - "time": "2024-11-12T14:59:47+00:00" + "time": "2025-01-24T15:41:01+00:00" }, { "name": "laravel/sanctum", - "version": "v4.0.7", + "version": "v4.0.8", "source": { "type": "git", "url": "https://github.com/laravel/sanctum.git", - "reference": "698064236a46df016e64a7eb059b1414e0b281df" + "reference": "ec1dd9ddb2ab370f79dfe724a101856e0963f43c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sanctum/zipball/698064236a46df016e64a7eb059b1414e0b281df", - "reference": "698064236a46df016e64a7eb059b1414e0b281df", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/ec1dd9ddb2ab370f79dfe724a101856e0963f43c", + "reference": "ec1dd9ddb2ab370f79dfe724a101856e0963f43c", "shasum": "" }, "require": { "ext-json": "*", - "illuminate/console": "^11.0", - "illuminate/contracts": "^11.0", - "illuminate/database": "^11.0", - "illuminate/support": "^11.0", + "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", + "orchestra/testbench": "^9.0|^10.0", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { @@ -1625,29 +1627,29 @@ "issues": "https://github.com/laravel/sanctum/issues", "source": "https://github.com/laravel/sanctum" }, - "time": "2024-12-11T16:40:21+00:00" + "time": "2025-01-26T19:34:36+00:00" }, { "name": "laravel/serializable-closure", - "version": "v2.0.0", + "version": "v2.0.2", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "0d8d3d8086984996df86596a86dea60398093a81" + "reference": "2e1a362527783bcab6c316aad51bf36c5513ae44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/0d8d3d8086984996df86596a86dea60398093a81", - "reference": "0d8d3d8086984996df86596a86dea60398093a81", + "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", + "illuminate/support": "^10.0|^11.0|^12.0", "nesbot/carbon": "^2.67|^3.0", - "pestphp/pest": "^2.36", + "pestphp/pest": "^2.36|^3.0", "phpstan/phpstan": "^2.0", "symfony/var-dumper": "^6.2.0|^7.0.0" }, @@ -1686,26 +1688,26 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2024-11-19T01:38:44+00:00" + "time": "2025-01-24T15:42:37+00:00" }, { "name": "laravel/tinker", - "version": "v2.10.0", + "version": "v2.10.1", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "ba4d51eb56de7711b3a37d63aa0643e99a339ae5" + "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/ba4d51eb56de7711b3a37d63aa0643e99a339ae5", - "reference": "ba4d51eb56de7711b3a37d63aa0643e99a339ae5", + "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", - "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "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" @@ -1713,10 +1715,10 @@ "require-dev": { "mockery/mockery": "~1.3.3|^1.4.2", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^8.5.8|^9.3.3" + "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)." + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." }, "type": "library", "extra": { @@ -1750,22 +1752,22 @@ ], "support": { "issues": "https://github.com/laravel/tinker/issues", - "source": "https://github.com/laravel/tinker/tree/v2.10.0" + "source": "https://github.com/laravel/tinker/tree/v2.10.1" }, - "time": "2024-09-23T13:32:56+00:00" + "time": "2025-01-27T14:24:01+00:00" }, { "name": "league/commonmark", - "version": "2.5.3", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "b650144166dfa7703e62a22e493b853b58d874b0" + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0", - "reference": "b650144166dfa7703e62a22e493b853b58d874b0", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d990688c91cedfb69753ffc2512727ec646df2ad", + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad", "shasum": "" }, "require": { @@ -1790,8 +1792,9 @@ "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/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0", + "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" }, @@ -1801,7 +1804,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.6-dev" + "dev-main": "2.7-dev" } }, "autoload": { @@ -1858,7 +1861,7 @@ "type": "tidelift" } ], - "time": "2024-08-16T11:46:16+00:00" + "time": "2024-12-29T14:10:59+00:00" }, { "name": "league/config", @@ -2131,17 +2134,191 @@ "time": "2024-09-21T08:32:55+00:00" }, { - "name": "monolog/monolog", - "version": "3.8.0", + "name": "league/uri", + "version": "7.5.1", "source": { "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "32e515fdc02cdafbe4593e30a9350d486b125b67" + "url": "https://github.com/thephpleague/uri.git", + "reference": "81fb5145d2644324614cc532b28efd0215bda430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/32e515fdc02cdafbe4593e30a9350d486b125b67", - "reference": "32e515fdc02cdafbe4593e30a9350d486b125b67", + "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": { @@ -2219,7 +2396,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.8.0" + "source": "https://github.com/Seldaek/monolog/tree/3.8.1" }, "funding": [ { @@ -2231,20 +2408,20 @@ "type": "tidelift" } ], - "time": "2024-11-12T13:57:08+00:00" + "time": "2024-12-05T17:15:07+00:00" }, { "name": "nesbot/carbon", - "version": "3.8.2", + "version": "3.8.4", "source": { "type": "git", - "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "e1268cdbc486d97ce23fef2c666dc3c6b6de9947" + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/e1268cdbc486d97ce23fef2c666dc3c6b6de9947", - "reference": "e1268cdbc486d97ce23fef2c666dc3c6b6de9947", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/129700ed449b1f02d70272d2ac802357c8c30c58", + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58", "shasum": "" }, "require": { @@ -2276,10 +2453,6 @@ ], "type": "library", "extra": { - "branch-alias": { - "dev-master": "3.x-dev", - "dev-2.x": "2.x-dev" - }, "laravel": { "providers": [ "Carbon\\Laravel\\ServiceProvider" @@ -2289,6 +2462,10 @@ "includes": [ "extension.neon" ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" } }, "autoload": { @@ -2337,7 +2514,7 @@ "type": "tidelift" } ], - "time": "2024-11-07T17:46:48+00:00" + "time": "2024-12-27T09:25:35+00:00" }, { "name": "nette/schema", @@ -2489,16 +2666,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -2541,9 +2718,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-10-08T18:51:32+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "nunomaduro/termwind", @@ -3397,16 +3574,16 @@ }, { "name": "psy/psysh", - "version": "v0.12.5", + "version": "v0.12.7", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "36a03ff27986682c22985e56aabaf840dd173cb5" + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/36a03ff27986682c22985e56aabaf840dd173cb5", - "reference": "36a03ff27986682c22985e56aabaf840dd173cb5", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", "shasum": "" }, "require": { @@ -3470,9 +3647,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.12.5" + "source": "https://github.com/bobthecow/psysh/tree/v0.12.7" }, - "time": "2024-11-29T06:14:30+00:00" + "time": "2024-12-10T01:58:33+00:00" }, { "name": "ralouphie/getallheaders", @@ -3775,16 +3952,16 @@ }, { "name": "symfony/console", - "version": "v7.2.0", + "version": "v7.2.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "23c8aae6d764e2bae02d2a99f7532a7f6ed619cf" + "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/23c8aae6d764e2bae02d2a99f7532a7f6ed619cf", - "reference": "23c8aae6d764e2bae02d2a99f7532a7f6ed619cf", + "url": "https://api.github.com/repos/symfony/console/zipball/fefcc18c0f5d0efe3ab3152f15857298868dc2c3", + "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3", "shasum": "" }, "require": { @@ -3848,7 +4025,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.2.0" + "source": "https://github.com/symfony/console/tree/v7.2.1" }, "funding": [ { @@ -3864,7 +4041,7 @@ "type": "tidelift" } ], - "time": "2024-11-06T14:24:19+00:00" + "time": "2024-12-11T03:49:26+00:00" }, { "name": "symfony/css-selector", @@ -3950,12 +4127,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -4000,16 +4177,16 @@ }, { "name": "symfony/error-handler", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "672b3dd1ef8b87119b446d67c58c106c43f965fe" + "reference": "959a74d044a6db21f4caa6d695648dcb5584cb49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/672b3dd1ef8b87119b446d67c58c106c43f965fe", - "reference": "672b3dd1ef8b87119b446d67c58c106c43f965fe", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/959a74d044a6db21f4caa6d695648dcb5584cb49", + "reference": "959a74d044a6db21f4caa6d695648dcb5584cb49", "shasum": "" }, "require": { @@ -4055,7 +4232,7 @@ "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.0" + "source": "https://github.com/symfony/error-handler/tree/v7.2.3" }, "funding": [ { @@ -4071,7 +4248,7 @@ "type": "tidelift" } ], - "time": "2024-11-05T15:35:02+00:00" + "time": "2025-01-07T09:39:55+00:00" }, { "name": "symfony/event-dispatcher", @@ -4173,12 +4350,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -4231,16 +4408,16 @@ }, { "name": "symfony/finder", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49" + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6de263e5868b9a137602dd1e33e4d48bfae99c49", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", "shasum": "" }, "require": { @@ -4275,7 +4452,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.0" + "source": "https://github.com/symfony/finder/tree/v7.2.2" }, "funding": [ { @@ -4291,20 +4468,20 @@ "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "e88a66c3997859532bc2ddd6dd8f35aba2711744" + "reference": "ee1b504b8926198be89d05e5b6fc4c3810c090f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e88a66c3997859532bc2ddd6dd8f35aba2711744", - "reference": "e88a66c3997859532bc2ddd6dd8f35aba2711744", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ee1b504b8926198be89d05e5b6fc4c3810c090f0", + "reference": "ee1b504b8926198be89d05e5b6fc4c3810c090f0", "shasum": "" }, "require": { @@ -4353,7 +4530,7 @@ "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.0" + "source": "https://github.com/symfony/http-foundation/tree/v7.2.3" }, "funding": [ { @@ -4369,20 +4546,20 @@ "type": "tidelift" } ], - "time": "2024-11-13T18:58:46+00:00" + "time": "2025-01-17T10:56:55+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "6b4722a25e0aed1ccb4914b9bcbd493cc4676b4d" + "reference": "caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6b4722a25e0aed1ccb4914b9bcbd493cc4676b4d", - "reference": "6b4722a25e0aed1ccb4914b9bcbd493cc4676b4d", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b", + "reference": "caae9807f8e25a9b43ce8cc6fafab6cf91f0cc9b", "shasum": "" }, "require": { @@ -4467,7 +4644,7 @@ "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.0" + "source": "https://github.com/symfony/http-kernel/tree/v7.2.3" }, "funding": [ { @@ -4483,20 +4660,20 @@ "type": "tidelift" } ], - "time": "2024-11-29T08:42:40+00:00" + "time": "2025-01-29T07:40:13+00:00" }, { "name": "symfony/mailer", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc" + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/e4d358702fb66e4c8a2af08e90e7271a62de39cc", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f3871b182c44997cf039f3b462af4a48fb85f9d3", + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3", "shasum": "" }, "require": { @@ -4547,7 +4724,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.2.0" + "source": "https://github.com/symfony/mailer/tree/v7.2.3" }, "funding": [ { @@ -4563,20 +4740,20 @@ "type": "tidelift" } ], - "time": "2024-11-25T15:21:05+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/mime", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "cc84a4b81f62158c3846ac7ff10f696aae2b524d" + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/cc84a4b81f62158c3846ac7ff10f696aae2b524d", - "reference": "cc84a4b81f62158c3846ac7ff10f696aae2b524d", + "url": "https://api.github.com/repos/symfony/mime/zipball/2fc3b4bd67e4747e45195bc4c98bea4628476204", + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204", "shasum": "" }, "require": { @@ -4631,7 +4808,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.2.0" + "source": "https://github.com/symfony/mime/tree/v7.2.3" }, "funding": [ { @@ -4647,7 +4824,7 @@ "type": "tidelift" } ], - "time": "2024-11-23T09:19:39+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4675,8 +4852,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4751,8 +4928,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4830,8 +5007,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4912,8 +5089,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4996,8 +5173,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -5070,8 +5247,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -5150,8 +5327,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -5232,8 +5409,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -5348,16 +5525,16 @@ }, { "name": "symfony/routing", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "e10a2450fa957af6c448b9b93c9010a4e4c0725e" + "reference": "ee9a67edc6baa33e5fae662f94f91fd262930996" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/e10a2450fa957af6c448b9b93c9010a4e4c0725e", - "reference": "e10a2450fa957af6c448b9b93c9010a4e4c0725e", + "url": "https://api.github.com/repos/symfony/routing/zipball/ee9a67edc6baa33e5fae662f94f91fd262930996", + "reference": "ee9a67edc6baa33e5fae662f94f91fd262930996", "shasum": "" }, "require": { @@ -5409,7 +5586,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.2.0" + "source": "https://github.com/symfony/routing/tree/v7.2.3" }, "funding": [ { @@ -5425,7 +5602,7 @@ "type": "tidelift" } ], - "time": "2024-11-25T11:08:51+00:00" + "time": "2025-01-17T10:56:55+00:00" }, { "name": "symfony/service-contracts", @@ -5451,12 +5628,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5599,16 +5776,16 @@ }, { "name": "symfony/translation", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "dc89e16b44048ceecc879054e5b7f38326ab6cc5" + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/dc89e16b44048ceecc879054e5b7f38326ab6cc5", - "reference": "dc89e16b44048ceecc879054e5b7f38326ab6cc5", + "url": "https://api.github.com/repos/symfony/translation/zipball/e2674a30132b7cc4d74540d6c2573aa363f05923", + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923", "shasum": "" }, "require": { @@ -5674,7 +5851,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.2.0" + "source": "https://github.com/symfony/translation/tree/v7.2.2" }, "funding": [ { @@ -5690,7 +5867,7 @@ "type": "tidelift" } ], - "time": "2024-11-12T20:47:56+00:00" + "time": "2024-12-07T08:18:10+00:00" }, { "name": "symfony/translation-contracts", @@ -5711,12 +5888,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5846,16 +6023,16 @@ }, { "name": "symfony/var-dumper", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c" + "reference": "82b478c69745d8878eb60f9a049a4d584996f73a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c6a22929407dec8765d6e2b6ff85b800b245879c", - "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/82b478c69745d8878eb60f9a049a4d584996f73a", + "reference": "82b478c69745d8878eb60f9a049a4d584996f73a", "shasum": "" }, "require": { @@ -5909,7 +6086,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.2.0" + "source": "https://github.com/symfony/var-dumper/tree/v7.2.3" }, "funding": [ { @@ -5925,35 +6102,37 @@ "type": "tidelift" } ], - "time": "2024-11-08T15:48:14+00:00" + "time": "2025-01-17T11:39:41+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", - "version": "v2.2.7", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", - "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb" + "reference": "0d72ac1c00084279c1816675284073c5a337c20d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/83ee6f38df0a63106a9e4536e3060458b74ccedb", - "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0d72ac1c00084279c1816675284073c5a337c20d", + "reference": "0d72ac1c00084279c1816675284073c5a337c20d", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", - "php": "^5.5 || ^7.0 || ^8.0", - "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0" + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" + "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.2.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -5976,9 +6155,9 @@ "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", "support": { "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", - "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.2.7" + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.3.0" }, - "time": "2023-12-08T13:03:43+00:00" + "time": "2024-12-21T16:25:41+00:00" }, { "name": "vlucas/phpdotenv", @@ -6263,16 +6442,16 @@ }, { "name": "filp/whoops", - "version": "2.16.0", + "version": "2.17.0", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "befcdc0e5dce67252aa6322d82424be928214fa2" + "reference": "075bc0c26631110584175de6523ab3f1652eb28e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/befcdc0e5dce67252aa6322d82424be928214fa2", - "reference": "befcdc0e5dce67252aa6322d82424be928214fa2", + "url": "https://api.github.com/repos/filp/whoops/zipball/075bc0c26631110584175de6523ab3f1652eb28e", + "reference": "075bc0c26631110584175de6523ab3f1652eb28e", "shasum": "" }, "require": { @@ -6322,7 +6501,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.16.0" + "source": "https://github.com/filp/whoops/tree/2.17.0" }, "funding": [ { @@ -6330,7 +6509,7 @@ "type": "github" } ], - "time": "2024-09-25T12:00:00+00:00" + "time": "2025-01-25T12:00:00+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -6385,47 +6564,47 @@ }, { "name": "laravel/pail", - "version": "v1.2.1", + "version": "v1.2.2", "source": { "type": "git", "url": "https://github.com/laravel/pail.git", - "reference": "353ac12134b98e2e7c3333d916bd3e523931e583" + "reference": "f31f4980f52be17c4667f3eafe034e6826787db2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pail/zipball/353ac12134b98e2e7c3333d916bd3e523931e583", - "reference": "353ac12134b98e2e7c3333d916bd3e523931e583", + "url": "https://api.github.com/repos/laravel/pail/zipball/f31f4980f52be17c4667f3eafe034e6826787db2", + "reference": "f31f4980f52be17c4667f3eafe034e6826787db2", "shasum": "" }, "require": { "ext-mbstring": "*", - "illuminate/console": "^10.24|^11.0", - "illuminate/contracts": "^10.24|^11.0", - "illuminate/log": "^10.24|^11.0", - "illuminate/process": "^10.24|^11.0", - "illuminate/support": "^10.24|^11.0", + "illuminate/console": "^10.24|^11.0|^12.0", + "illuminate/contracts": "^10.24|^11.0|^12.0", + "illuminate/log": "^10.24|^11.0|^12.0", + "illuminate/process": "^10.24|^11.0|^12.0", + "illuminate/support": "^10.24|^11.0|^12.0", "nunomaduro/termwind": "^1.15|^2.0", "php": "^8.2", "symfony/console": "^6.0|^7.0" }, "require-dev": { - "laravel/framework": "^10.24|^11.0", + "laravel/framework": "^10.24|^11.0|^12.0", "laravel/pint": "^1.13", - "orchestra/testbench-core": "^8.12|^9.0", - "pestphp/pest": "^2.20", - "pestphp/pest-plugin-type-coverage": "^2.3", + "orchestra/testbench-core": "^8.13|^9.0|^10.0", + "pestphp/pest": "^2.20|^3.0", + "pestphp/pest-plugin-type-coverage": "^2.3|^3.0", "phpstan/phpstan": "^1.10", "symfony/var-dumper": "^6.3|^7.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.x-dev" - }, "laravel": { "providers": [ "Laravel\\Pail\\PailServiceProvider" ] + }, + "branch-alias": { + "dev-main": "1.x-dev" } }, "autoload": { @@ -6459,20 +6638,20 @@ "issues": "https://github.com/laravel/pail/issues", "source": "https://github.com/laravel/pail" }, - "time": "2024-10-23T12:56:23+00:00" + "time": "2025-01-28T15:15:15+00:00" }, { "name": "laravel/pint", - "version": "v1.18.3", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026" + "reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026", + "url": "https://api.github.com/repos/laravel/pint/zipball/53072e8ea22213a7ed168a8a15b96fbb8b82d44b", + "reference": "53072e8ea22213a7ed168a8a15b96fbb8b82d44b", "shasum": "" }, "require": { @@ -6483,10 +6662,10 @@ "php": "^8.1.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.65.0", - "illuminate/view": "^10.48.24", - "larastan/larastan": "^2.9.11", - "laravel-zero/framework": "^10.4.0", + "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" @@ -6525,32 +6704,32 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-11-26T15:34:00+00:00" + "time": "2025-01-14T16:20:53+00:00" }, { "name": "laravel/sail", - "version": "v1.39.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7" + "reference": "fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/1a3c7291bc88de983b66688919a4d298d68ddec7", - "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7", + "url": "https://api.github.com/repos/laravel/sail/zipball/fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec", + "reference": "fe1a4ada0abb5e4bd99eb4e4b0d87906c00cdeec", "shasum": "" }, "require": { - "illuminate/console": "^9.52.16|^10.0|^11.0", - "illuminate/contracts": "^9.52.16|^10.0|^11.0", - "illuminate/support": "^9.52.16|^10.0|^11.0", + "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", + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", "phpstan/phpstan": "^1.10" }, "bin": [ @@ -6588,7 +6767,7 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2024-11-27T15:42:28+00:00" + "time": "2025-01-24T15:45:36+00:00" }, { "name": "mockery/mockery", @@ -6735,37 +6914,37 @@ }, { "name": "nunomaduro/collision", - "version": "v8.5.0", + "version": "v8.6.1", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "f5c101b929c958e849a633283adff296ed5f38f5" + "reference": "86f003c132143d5a2ab214e19933946409e0cae7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f5c101b929c958e849a633283adff296ed5f38f5", - "reference": "f5c101b929c958e849a633283adff296ed5f38f5", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/86f003c132143d5a2ab214e19933946409e0cae7", + "reference": "86f003c132143d5a2ab214e19933946409e0cae7", "shasum": "" }, "require": { "filp/whoops": "^2.16.0", - "nunomaduro/termwind": "^2.1.0", + "nunomaduro/termwind": "^2.3.0", "php": "^8.2.0", - "symfony/console": "^7.1.5" + "symfony/console": "^7.2.1" }, "conflict": { - "laravel/framework": "<11.0.0 || >=12.0.0", - "phpunit/phpunit": "<10.5.1 || >=12.0.0" + "laravel/framework": "<11.39.1 || >=13.0.0", + "phpunit/phpunit": "<11.5.3 || >=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", + "larastan/larastan": "^2.9.12", + "laravel/framework": "^11.39.1", + "laravel/pint": "^1.20.0", + "laravel/sail": "^1.40.0", + "laravel/sanctum": "^4.0.7", "laravel/tinker": "^2.10.0", - "orchestra/testbench-core": "^9.5.3", - "pestphp/pest": "^2.36.0 || ^3.4.0", + "orchestra/testbench-core": "^9.9.2", + "pestphp/pest": "^3.7.3", "sebastian/environment": "^6.1.0 || ^7.2.0" }, "type": "library", @@ -6803,6 +6982,7 @@ "cli", "command-line", "console", + "dev", "error", "handling", "laravel", @@ -6828,7 +7008,7 @@ "type": "patreon" } ], - "time": "2024-10-15T16:06:32+00:00" + "time": "2025-01-23T13:41:43+00:00" }, { "name": "phar-io/manifest", @@ -6950,16 +7130,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "11.0.7", + "version": "11.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca" + "reference": "418c59fd080954f8c4aa5631d9502ecda2387118" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f7f08030e8811582cc459871d28d6f5a1a4d35ca", - "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/418c59fd080954f8c4aa5631d9502ecda2387118", + "reference": "418c59fd080954f8c4aa5631d9502ecda2387118", "shasum": "" }, "require": { @@ -6978,7 +7158,7 @@ "theseer/tokenizer": "^1.2.3" }, "require-dev": { - "phpunit/phpunit": "^11.4.1" + "phpunit/phpunit": "^11.5.0" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -7016,7 +7196,7 @@ "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/11.0.7" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.8" }, "funding": [ { @@ -7024,7 +7204,7 @@ "type": "github" } ], - "time": "2024-10-09T06:21:38+00:00" + "time": "2024-12-11T12:34:27+00:00" }, { "name": "phpunit/php-file-iterator", @@ -7273,16 +7453,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.4.4", + "version": "11.5.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4" + "reference": "3c3ae14c90f244cdda95028c3e469028e8d1c02c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", - "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3c3ae14c90f244cdda95028c3e469028e8d1c02c", + "reference": "3c3ae14c90f244cdda95028c3e469028e8d1c02c", "shasum": "" }, "require": { @@ -7296,21 +7476,22 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.2", - "phpunit/php-code-coverage": "^11.0.7", + "phpunit/php-code-coverage": "^11.0.8", "phpunit/php-file-iterator": "^5.1.0", "phpunit/php-invoker": "^5.0.1", "phpunit/php-text-template": "^4.0.1", "phpunit/php-timer": "^7.0.1", "sebastian/cli-parser": "^3.0.2", - "sebastian/code-unit": "^3.0.1", - "sebastian/comparator": "^6.2.1", + "sebastian/code-unit": "^3.0.2", + "sebastian/comparator": "^6.3.0", "sebastian/diff": "^6.0.2", "sebastian/environment": "^7.2.0", - "sebastian/exporter": "^6.1.3", + "sebastian/exporter": "^6.3.0", "sebastian/global-state": "^7.0.2", "sebastian/object-enumerator": "^6.0.1", "sebastian/type": "^5.1.0", - "sebastian/version": "^5.0.2" + "sebastian/version": "^5.0.2", + "staabm/side-effects-detector": "^1.0.5" }, "suggest": { "ext-soap": "To be able to generate mocks based on WSDL files" @@ -7321,7 +7502,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "11.4-dev" + "dev-main": "11.5-dev" } }, "autoload": { @@ -7353,7 +7534,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.4" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.6" }, "funding": [ { @@ -7369,7 +7550,7 @@ "type": "tidelift" } ], - "time": "2024-11-27T10:44:52+00:00" + "time": "2025-01-31T07:03:30+00:00" }, { "name": "sebastian/cli-parser", @@ -7430,23 +7611,23 @@ }, { "name": "sebastian/code-unit", - "version": "3.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268" + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/6bb7d09d6623567178cf54126afa9c2310114268", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.5" }, "type": "library", "extra": { @@ -7475,7 +7656,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.2" }, "funding": [ { @@ -7483,7 +7664,7 @@ "type": "github" } ], - "time": "2024-07-03T04:44:28+00:00" + "time": "2024-12-12T09:59:06+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -7543,16 +7724,16 @@ }, { "name": "sebastian/comparator", - "version": "6.2.1", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739" + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/43d129d6a0f81c78bee378b46688293eb7ea3739", - "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/d4e47a769525c4dd38cea90e5dcd435ddbbc7115", + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115", "shasum": "" }, "require": { @@ -7565,6 +7746,9 @@ "require-dev": { "phpunit/phpunit": "^11.4" }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, "type": "library", "extra": { "branch-alias": { @@ -7608,7 +7792,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.2.1" + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.0" }, "funding": [ { @@ -7616,7 +7800,7 @@ "type": "github" } ], - "time": "2024-10-31T05:30:08+00:00" + "time": "2025-01-06T10:28:19+00:00" }, { "name": "sebastian/complexity", @@ -7809,16 +7993,16 @@ }, { "name": "sebastian/exporter", - "version": "6.1.3", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e" + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/3473f61172093b2da7de1fb5782e1f24cc036dc3", + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3", "shasum": "" }, "require": { @@ -7827,7 +8011,7 @@ "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^11.2" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { @@ -7875,7 +8059,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/6.1.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.0" }, "funding": [ { @@ -7883,7 +8067,7 @@ "type": "github" } ], - "time": "2024-07-03T04:56:19+00:00" + "time": "2024-12-05T09:17:50+00:00" }, { "name": "sebastian/global-state", @@ -8295,17 +8479,69 @@ "time": "2024-10-09T05:16:32+00:00" }, { - "name": "symfony/yaml", - "version": "v7.2.0", + "name": "staabm/side-effects-detector", + "version": "1.0.5", "source": { "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "099581e99f557e9f16b43c5916c26380b54abb22" + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/099581e99f557e9f16b43c5916c26380b54abb22", - "reference": "099581e99f557e9f16b43c5916c26380b54abb22", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+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": { @@ -8348,7 +8584,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.2.0" + "source": "https://github.com/symfony/yaml/tree/v7.2.3" }, "funding": [ { @@ -8364,7 +8600,7 @@ "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2025-01-07T12:55:42+00:00" }, { "name": "theseer/tokenizer", @@ -8419,12 +8655,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": true, "prefer-lowest": false, "platform": { "php": "^8.2" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/config/laravel-code-generator.php b/config/laravel-code-generator.php new file mode 100644 index 0000000..4eccd9a --- /dev/null +++ b/config/laravel-code-generator.php @@ -0,0 +1,52 @@ + + | [ + | [ + | 'match' => '*_at', + | 'set' => [ + | 'css-class' => 'datetime-picker', + | ], + | ], + | ], + | + */ + + /* + |-------------------------------------------------------------------------- + | The default path of where the uploaded files live. + |-------------------------------------------------------------------------- + | + | You can use Laravel Storage filesystem. By default, the code-generator + | uses the default file system. + | For more info about Laravel's file system visit + | https://laravel.com/docs/5.5/filesystem + | + */ + 'files_upload_path' => 'uploads', + +]; diff --git a/resources/js/dashboards/bigdata.js b/resources/js/dashboards/bigdata.js index 89fa7c6..8bb04c5 100644 --- a/resources/js/dashboards/bigdata.js +++ b/resources/js/dashboards/bigdata.js @@ -408,6 +408,7 @@ class BigData { console.error("error fetching chart dara : ", error); }); } + } class ArrowConnectorCircles { @@ -436,3 +437,33 @@ document.addEventListener("DOMContentLoaded", async function (e) { await new BigData().init(); // new ArrowConnectorCircles().init(); }); + +function resizeDashboard(){ + //Target Width + let targetElement = document.getElementById("dashboard-fixed-wrapper"); + let targetWidth = targetElement.offsetWidth; + //console.log("TARGET ",targetWidth); + + //Real Object Width + let dashboardElement = document.getElementById("dashboard-fixed-container"); + let dashboardWidth = 1110; //dashboardElement.offsetWidth; + //console.log("CURRENT ",dashboardWidth); + + if(targetWidth> dashboardWidth){ + targetWidth = dashboardWidth; + } + + dashboardElement.style.transformOrigin = "left top"; + dashboardElement.style.transition = "transform 0.2s ease-in-out"; + dashboardElement.style.transform = "scale(" + (targetWidth/dashboardWidth).toFixed(2) + ")"; + //console.log("SCALE ", (targetWidth/dashboardWidth).toFixed(2)); + } + +window.addEventListener("load", function () { + resizeDashboard(); +}); + +window.addEventListener("resize", function () { + resizeDashboard(); + +}); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-base-class.stub b/resources/laravel-code-generator/templates/default/api-controller-base-class.stub new file mode 100644 index 0000000..5cdad7a --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-base-class.stub @@ -0,0 +1,15 @@ +successResponse( + [% model_was_deleted %], + $this->transform($[% model_name_singular_variable %]) + ); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-index-api-resource.stub b/resources/laravel-code-generator/templates/default/api-controller-call-index-api-resource.stub new file mode 100644 index 0000000..9d01d03 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-index-api-resource.stub @@ -0,0 +1 @@ +return new [% api_resource_collection_class %]($[% model_name_plural_variable %], [% models_were_retrieved %]); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-index-success-method.stub b/resources/laravel-code-generator/templates/default/api-controller-call-index-success-method.stub new file mode 100644 index 0000000..1ac32cd --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-index-success-method.stub @@ -0,0 +1,26 @@ +$[% data_variable %] = $[% model_name_plural_variable %]->transform(function ($[% model_name_singular_variable %]) { + return $this->transform($[% model_name_singular_variable %]); + }); + + return $this->successResponse( + [% models_were_retrieved %], + $[% data_variable %], + [ + 'links' => [ + 'first' => $[% model_name_plural_variable %]->url(1), + 'last' => $[% model_name_plural_variable %]->url($[% model_name_plural_variable %]->lastPage()), + 'prev' => $[% model_name_plural_variable %]->previousPageUrl(), + 'next' => $[% model_name_plural_variable %]->nextPageUrl(), + ], + 'meta' => + [ + 'current_page' => $[% model_name_plural_variable %]->currentPage(), + 'from' => $[% model_name_plural_variable %]->firstItem(), + 'last_page' => $[% model_name_plural_variable %]->lastPage(), + 'path' => $[% model_name_plural_variable %]->resolveCurrentPath(), + 'per_page' => $[% model_name_plural_variable %]->perPage(), + 'to' => $[% model_name_plural_variable %]->lastItem(), + 'total' => $[% model_name_plural_variable %]->total(), + ], + ] + ); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-show-api-resource.stub b/resources/laravel-code-generator/templates/default/api-controller-call-show-api-resource.stub new file mode 100644 index 0000000..c9c453d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-show-api-resource.stub @@ -0,0 +1 @@ +return new [% api_resource_class %]($[% model_name_singular_variable %], [% model_was_retrieved %]); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-show-success-method.stub b/resources/laravel-code-generator/templates/default/api-controller-call-show-success-method.stub new file mode 100644 index 0000000..c35ff81 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-show-success-method.stub @@ -0,0 +1,4 @@ +return $this->successResponse( + [% model_was_retrieved %], + $this->transform($[% model_name_singular_variable %]) + ); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-store-api-resource.stub b/resources/laravel-code-generator/templates/default/api-controller-call-store-api-resource.stub new file mode 100644 index 0000000..48c1110 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-store-api-resource.stub @@ -0,0 +1 @@ +return new [% api_resource_class %]($[% model_name_singular_variable %], [% model_was_added %]); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-store-success-method.stub b/resources/laravel-code-generator/templates/default/api-controller-call-store-success-method.stub new file mode 100644 index 0000000..e03ecd1 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-store-success-method.stub @@ -0,0 +1,4 @@ +return $this->successResponse( + [% model_was_added %], + $this->transform($[% model_name_singular_variable %]) + ); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-update-api-resource.stub b/resources/laravel-code-generator/templates/default/api-controller-call-update-api-resource.stub new file mode 100644 index 0000000..ba91ac7 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-update-api-resource.stub @@ -0,0 +1 @@ +return new [% api_resource_class %]($[% model_name_singular_variable %], [% model_was_updated %]); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-call-update-success-method.stub b/resources/laravel-code-generator/templates/default/api-controller-call-update-success-method.stub new file mode 100644 index 0000000..5ea663a --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-call-update-success-method.stub @@ -0,0 +1,4 @@ +return $this->successResponse( + [% model_was_updated %], + $this->transform($[% model_name_singular_variable %]) + ); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-error-response-method.stub b/resources/laravel-code-generator/templates/default/api-controller-error-response-method.stub new file mode 100644 index 0000000..8b8879e --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-error-response-method.stub @@ -0,0 +1,14 @@ + /** + * Get an error response + * + * @param mix $message + * + * @return Illuminate\Http\Response + */ + protected function errorResponse($message) + { + return response()->json([ + 'errors' => (array) $message, + 'success' => false, + ], 422); + } diff --git a/resources/laravel-code-generator/templates/default/api-controller-get-validator.stub b/resources/laravel-code-generator/templates/default/api-controller-get-validator.stub new file mode 100644 index 0000000..4414601 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-get-validator.stub @@ -0,0 +1,16 @@ + + /** + * Gets a new validator instance with the defined rules. + * + * @param [% request_fullname %] $request + * + * @return Illuminate\Support\Facades\Validator + */ + protected function getValidator(Request $request) + { + $rules = [ +[% validation_rules %] + ]; +[% file_validation_snippet %] + return Validator::make($request->all(), $rules); + } diff --git a/resources/laravel-code-generator/templates/default/api-controller-success-response-method.stub b/resources/laravel-code-generator/templates/default/api-controller-success-response-method.stub new file mode 100644 index 0000000..d8609e4 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-success-response-method.stub @@ -0,0 +1,18 @@ + /** + * Get a success response + * + * @param mix $message + * @param mix $data + * @param array $meta + * + * @return Illuminate\Http\Response + */ + protected function successResponse($message, $data, array $meta = []) + { + return response()->json( + array_merge([ + 'data' => $data, + 'message' => $message, + 'success' => true, + ], $meta), 200); + } \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-controller-transform-method.stub b/resources/laravel-code-generator/templates/default/api-controller-transform-method.stub new file mode 100644 index 0000000..950f975 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-transform-method.stub @@ -0,0 +1,13 @@ + /** + * Transform the giving [% model_name %] to public friendly array + * + * @param [% use_full_model_name %] $[% model_name_singular_variable %] + * + * @return array + */ + protected function [% transform_method_name %]([% model_name_class %] $[% model_name_singular_variable %]) + { + return [ +[% model_api_array %] + ]; + } diff --git a/resources/laravel-code-generator/templates/default/api-controller-validate.stub b/resources/laravel-code-generator/templates/default/api-controller-validate.stub new file mode 100644 index 0000000..c582ea6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller-validate.stub @@ -0,0 +1,5 @@ +$validator = $this->getValidator($request); + + if ($validator->fails()) { + return $this->errorResponse($validator->errors()->all()); + } diff --git a/resources/laravel-code-generator/templates/default/api-controller.stub b/resources/laravel-code-generator/templates/default/api-controller.stub new file mode 100644 index 0000000..ad86836 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-controller.stub @@ -0,0 +1,104 @@ +errorResponse([% unexpected_error %]); + } + } + + /** + * Display the specified [% model_name %]. + * + * @param int $id + * + * @return Illuminate\Http\Response + */ + public function show($id) + { + $[% model_name_singular_variable %] = [% model_name_class %]::[% with_relations_for_show %]findOrFail($id); + + [% show_return_success %] + } + + /** + * Update the specified [% model_name %] in the storage. + * + * @param int $id + * @param [% request_fullname %] [% request_variable %] + * + * @return Illuminate\Http\Response + */ + public function update($id, [% type_hinted_request_name %]) + { + try { + [% validator_request %] + $[% data_variable %] = [% call_get_data %]; + [% on_update_setter %] + $[% model_name_singular_variable %] = [% model_name_class %]::findOrFail($id); + $[% model_name_singular_variable %]->update($[% data_variable %]); + + [% update_return_success %] + } catch (Exception $exception) { + return $this->errorResponse([% unexpected_error %]); + } + } + + /** + * Remove the specified [% model_name %] from the storage. + * + * @param int $id + * + * @return Illuminate\Http\Response + */ + public function destroy($id) + { + try { + $[% model_name_singular_variable %] = [% model_name_class %]::findOrFail($id); + $[% model_name_singular_variable %]->delete(); + + [% destroy_return_success %] + } catch (Exception $exception) { + return $this->errorResponse([% unexpected_error %]); + } + } +[% get_validator_method %] +[% get_data_method %] +[% upload_method %] +[% transform_method %] +[% response_methods %] +} diff --git a/resources/laravel-code-generator/templates/default/api-documentation-controller-version-based.stub b/resources/laravel-code-generator/templates/default/api-documentation-controller-version-based.stub new file mode 100644 index 0000000..d7c8117 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-controller-version-based.stub @@ -0,0 +1,21 @@ +getVersion($version)); + + return view($viewName); + } +} diff --git a/resources/laravel-code-generator/templates/default/api-documentation-controller.stub b/resources/laravel-code-generator/templates/default/api-documentation-controller.stub new file mode 100644 index 0000000..1b27cfe --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-controller.stub @@ -0,0 +1,20 @@ +[% required_title %] \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-authentication.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-authentication.stub new file mode 100644 index 0000000..eb6a978 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-authentication.stub @@ -0,0 +1,11 @@ + + Authorization + [% string_title %] + + [% header_title %] + + [% access_token_with_bearer %] + @if(isset($showValidation) && $showValidation) + + @endif + diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-failed-authentication.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-authentication.stub new file mode 100644 index 0000000..e412621 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-authentication.stub @@ -0,0 +1,16 @@ +

401 - Unauthorized

+

[% the_user_does_not_have_permission_to_access_the_requested_resource %]

+ + + + + + + + + + + + + +
success[% boolean_title %][% indicate_whether_the_request_was_successful_or_not %]
error[% array_of_strings %][% the_error_message %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-failed-to-retrieve.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-to-retrieve.stub new file mode 100644 index 0000000..d94ce7a --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-to-retrieve.stub @@ -0,0 +1,16 @@ +

202 - Accepted

+

[% the_requested_model_does_not_exists %]

+ + + + + + + + + + + + + +
success[% boolean_title %][% indicate_whether_the_request_was_successful_or_not %]
error[% array_of_strings %][% the_error_message %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-failed-validation.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-validation.stub new file mode 100644 index 0000000..06c98b6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-failed-validation.stub @@ -0,0 +1,16 @@ +

422 - Unprocessable Entity

+

[% the_request_failed_validation %]

+ + + + + + + + + + + + + +
success[% boolean_title %][% indicate_whether_the_request_was_successful_or_not %]
errors[% array_of_strings %][% list_of_the_invalid_errors %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row-for-model.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row-for-model.stub new file mode 100644 index 0000000..125a36d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row-for-model.stub @@ -0,0 +1,5 @@ + + [% field_name %] + [% field_type_title %] + [% api_field_description %] + diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row.stub new file mode 100644 index 0000000..21c2c77 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list-body-row.stub @@ -0,0 +1,12 @@ + + [% field_name %] + [% field_type_title %] + [% body_title %] + [% api_field_description %] + @if($showValidation) + + [% validation_rule_required %] + [% validation_rules %] + + @endif + diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list.stub new file mode 100644 index 0000000..c7c5429 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-fields-list.stub @@ -0,0 +1,37 @@ + + + + + + + + + @if($showValidation) + + @endif + + + + [% include_parameter_for_authorized_request %] + @if(isset($withPathId) && $withPathId) + + + + + + @if($showValidation) + + @endif + + + @endif + + [% fields_list_for_body %] + + + +
[% parameter_name_title %][% data_type_title %][% parameter_type_title %][% description_title %][% validation_title %]
[% model_name %][% primary_key_type_title %][% path_title %][% the_id_of_the_model %] + [% validation_rule_required %] +
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-request.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-request.stub new file mode 100644 index 0000000..bd1278a --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-request.stub @@ -0,0 +1,14 @@ + + + + + + + + + + + [% include_parameter_for_authorized_request %] + + +
[% parameter_name_title %][% data_type_title %][% parameter_type_title %][% description_title %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields-body-row.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields-body-row.stub new file mode 100644 index 0000000..125a36d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields-body-row.stub @@ -0,0 +1,5 @@ + + [% field_name %] + [% field_type_title %] + [% api_field_description %] + diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields.stub new file mode 100644 index 0000000..0c93577 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved-fields.stub @@ -0,0 +1,12 @@ + + + + + + + + + +[% fields_list_for_body %] + +
[% name_title %][% type_title %][% description_title %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved.stub b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved.stub new file mode 100644 index 0000000..2c8cd87 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index-retrieved.stub @@ -0,0 +1,21 @@ +

200 - Ok

+

[% request_was_successful %]

+ + + + + + + + + + + + + + + + + + +
success[% boolean_title %][% indicate_whether_the_request_was_successful_or_not %]
message[% string_title %][% the_success_message %]
data[% array_title %][% the_key_is_the_model_property_and_the_value_is_the_model_value %]
diff --git a/resources/laravel-code-generator/templates/default/api-documentation-index.stub b/resources/laravel-code-generator/templates/default/api-documentation-index.stub new file mode 100644 index 0000000..2816e9f --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-index.stub @@ -0,0 +1,386 @@ +@extends('[% layout_name %]') + +@section('content') + +

[% model_plural %]

+[% general_description %] +
+ +

[% available_resources %]

+
+ +
+
+ GET + /{{ Route::getRoutes()->getByName('[% index_route_name %]')->uri() }} +

[% index_route_description %]

+
+
+ +
+
+ +
+

[% request_title %]

+ [% authorized_request_for_index %] + +
+

[% response_title %]

+ +

[% index_route_response_description %]

+

+ +

200 - Ok

+

[% request_was_successful %]

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
success[% boolean_title %]Was the request successful or not.
message[% string_title %][% the_success_message %]
data[% array_title %] + [% the_key_is_the_model_property_and_the_value_is_the_model_value %] +
links[% array_title %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[% key_title %][% data_type_title %][% description_title %]
first[% string_title %][% link_to_retrieve_first_page %]
last[% string_title %][% link_to_retrieve_last_page %]
prev[% string_title %][% link_to_retrieve_previous_page %]
next[% string_title %][% link_to_retrieve_next_page %]
+ +
meta[% array_title %] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[% key_title %][% data_type_title %][% description_title %]
current_page[% integer_title %][% the_number_of_current_page %]
from[% integer_title %][% the_index_of_the_first_retrieved_item %]
last_page[% integer_title %][% the_number_of_the_last_page %]
Path[% string_title %][% the_base_link_to_the_resource %]
per_page[% integer_title %][% the_number_of_models_per_page %]
to[% integer_title %][% the_index_of_the_last_retrieved_item %]
total[% integer_title %][% the_total_of_available_pages %]
+ +
+ + [% include_failed_authentication_for_authorized_request %] + +
+
+ + +
+ +
+
+ POST + /{{ Route::getRoutes()->getByName('[% store_route_name %]')->uri() }} +

[% store_route_description %]

+
+
+ +
+
+ +
+

[% request_title %]

+ + @include('[% path_to_view_home %]fields-list', [ + 'withValidation' => true + ]) + +
+

[% response_title %]

+

[% store_route_response_description %]

+

+ + @include('[% path_to_view_home %]retrieved') + @include('[% path_to_view_home %]failed-to-retrieve') + @include('[% path_to_view_home %]failed-validation') + [% include_failed_authentication_for_authorized_request %] + +
+
+ + + +
+ +
+
+ POST + /{{ Route::getRoutes()->getByName('[% update_route_name %]')->uri() }} +

[% update_route_description %]

+
+
+ +
+
+ +
+
+ +

[% request_title %]

+ + @include('[% path_to_view_home %]fields-list', [ + 'withValidation' => true, + 'withPathId' => true, + ]) + +
+

[% response_title %]

+

[% update_route_response_description %]

+

+ + @include('[% path_to_view_home %]retrieved') + @include('[% path_to_view_home %]failed-to-retrieve') + @include('[% path_to_view_home %]failed-validation') + [% include_failed_authentication_for_authorized_request %] + +
+
+
+ + + +
+ +
+
+ GET + /{{ Route::getRoutes()->getByName('[% show_route_name %]')->uri() }} +

[% show_route_description %]

+
+
+ +
+
+ +
+ +

[% request_title %]

+ + + + + + + + + + + + [% include_parameter_for_authorized_request %] + + + + + + + +
[% parameter_name_title %][% data_type_title %][% parameter_type_title %][% description_title %]
[% model_name %][% integer_title %][% path_title %][% the_id_of_model_to_retrieve %]
+ + +
+

[% response_title %]

+

[% show_route_response_description %]

+

+ + @include('[% path_to_view_home %]retrieved') + @include('[% path_to_view_home %]failed-to-retrieve') + [% include_failed_authentication_for_authorized_request %] + +
+
+ + +
+ +
+
+ DELETE + /{{ Route::getRoutes()->getByName('[% destroy_route_name %]')->uri() }} +

[% destroy_route_description %]

+
+
+ +
+
+ +
+ +

[% request_title %]

+ + + + + + + + + + + + [% include_parameter_for_authorized_request %] + + + + + + + +
[% parameter_name_title %][% data_type_title %][% parameter_type_title %][% description_title %]
[% model_name %][% integer_title %][% path_title %][% the_id_of_model_to_delete %]
+ + +
+

[% response_title %]

+

[% destroy_route_response_description %]

+

+ + @include('[% path_to_view_home %]retrieved') + @include('[% path_to_view_home %]failed-to-retrieve') + [% include_failed_authentication_for_authorized_request %] + +
+ +
+ +
+ +

[% model_definition_title %]

+
+ +
+
+ [% model_name_title %] +
+
+ +
+
+ +
+ + + + + + + + + + [% fields_list_for_body %] + +
[% field_name_title %][% field_type_title %][% description_title %]
+
+
+ +@endsection diff --git a/resources/laravel-code-generator/templates/default/api-documentation-routes-8.stub b/resources/laravel-code-generator/templates/default/api-documentation-routes-8.stub new file mode 100644 index 0000000..1e3291f --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-routes-8.stub @@ -0,0 +1,2 @@ +Route::get('[% prefix %][% version %]', [[% controller_name %]::class, 'index']) + ->name('[% index_route_name %]'); diff --git a/resources/laravel-code-generator/templates/default/api-documentation-routes.stub b/resources/laravel-code-generator/templates/default/api-documentation-routes.stub new file mode 100644 index 0000000..d74d23f --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-routes.stub @@ -0,0 +1,2 @@ +Route::get('[% prefix %][% version %]', '[% controller_name %]@index') + ->name('[% index_route_name %]'); diff --git a/resources/laravel-code-generator/templates/default/api-documentation-version-based-base-controller.stub b/resources/laravel-code-generator/templates/default/api-documentation-version-based-base-controller.stub new file mode 100644 index 0000000..9f4201d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-documentation-version-based-base-controller.stub @@ -0,0 +1,38 @@ +versions)) { + return $version; + } + + return end($this->versions); + } +} \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-resource-collection.stub b/resources/laravel-code-generator/templates/default/api-resource-collection.stub new file mode 100644 index 0000000..f6f8578 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-resource-collection.stub @@ -0,0 +1,50 @@ +message = $message; + } + + /** + * Transform the resource collection into an array. + * + * @param \Illuminate\Http\Request + * @return array + */ + public function toArray($request) + { + return [ + 'data' => $this->collection->transform(function ($[% model_name_singular_variable %]) { + return $this->transformModel($[% model_name_singular_variable %]); + }), + 'message' => $this->message, + 'success' => true, + ]; + } + +[% transform_method %] +} diff --git a/resources/laravel-code-generator/templates/default/api-resource.stub b/resources/laravel-code-generator/templates/default/api-resource.stub new file mode 100644 index 0000000..addba74 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-resource.stub @@ -0,0 +1,59 @@ +message = $message; + } + + /** + * Transform the resource into an array. + * + * @param \Illuminate\Http\Request $request + * + * @return array + */ + public function toArray($request) + { + return [ +[% model_api_array %] + ]; + } + + /** + * Get any additional data that should be returned with the resource array. + * + * @param \Illuminate\Http\Request $request + * + * @return array + */ + public function with($request) + { + return [ + 'success' => true, + 'message' => $this->message, + ]; + } +} diff --git a/resources/laravel-code-generator/templates/default/api-routes-8.stub b/resources/laravel-code-generator/templates/default/api-routes-8.stub new file mode 100644 index 0000000..28e3886 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-routes-8.stub @@ -0,0 +1,10 @@ + Route::get('/', [[% controller_name %]::class, 'index']) + ->name('[% index_route_name %]'); + Route::get('/show/{[% model_name_singular_variable %]}',[[% controller_name %]::class, 'show']) + ->name('[% show_route_name %]')[% route_id_clause %]; + Route::post('/', [[% controller_name %]::class, 'store']) + ->name('[% store_route_name %]'); + Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', [[% controller_name %]::class, 'update']) + ->name('[% update_route_name %]')[% route_id_clause %]; + Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}',[[% controller_name %]::class, 'destroy']) + ->name('[% destroy_route_name %]')[% route_id_clause %]; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/api-routes.stub b/resources/laravel-code-generator/templates/default/api-routes.stub new file mode 100644 index 0000000..bd4043d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/api-routes.stub @@ -0,0 +1,10 @@ + Route::get('/', '[% controller_name %]@index') + ->name('[% index_route_name %]'); + Route::get('/show/{[% model_name_singular_variable %]}','[% controller_name %]@show') + ->name('[% show_route_name %]')[% route_id_clause %]; + Route::post('/', '[% controller_name %]@store') + ->name('[% store_route_name %]'); + Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', '[% controller_name %]@update') + ->name('[% update_route_name %]')[% route_id_clause %]; + Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}','[% controller_name %]@destroy') + ->name('[% destroy_route_name %]')[% route_id_clause %]; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/controller-affirm-method.stub b/resources/laravel-code-generator/templates/default/controller-affirm-method.stub new file mode 100644 index 0000000..7d4f94f --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-affirm-method.stub @@ -0,0 +1,17 @@ + + /** + * Validate the given request with the defined rules. + * + * @param [% request_fullname %] $request + * + * @return boolean + */ + protected function affirm(Request $request) + { + $rules = [ +[% validation_rules %] + ]; +[% file_validation_snippet %] + + return $this->validate($request, $rules); + } diff --git a/resources/laravel-code-generator/templates/default/controller-constructor.stub b/resources/laravel-code-generator/templates/default/controller-constructor.stub new file mode 100644 index 0000000..a670bb3 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-constructor.stub @@ -0,0 +1,10 @@ + /** + * Create a new controller instance. + * + * @return void + */ + public function __construct() + { + [% auth_middleware %] + } + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/controller-getdata-method-5.5.stub b/resources/laravel-code-generator/templates/default/controller-getdata-method-5.5.stub new file mode 100644 index 0000000..3295ab8 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-getdata-method-5.5.stub @@ -0,0 +1,21 @@ + + /** + * Get the request's data from the request. + * + * [% request_name_comment %] + * @return array + */ + [% visibility_level %] function getData([% type_hinted_request_name %]) + { + $rules = [ + [% validation_rules %] + ]; + + [% file_validation_snippet %] + $data = [% request_variable %]->validate($rules); + +[% file_snippet %] +[% boolean_snippet %] +[% string_to_null_snippet %] + return $data; + } \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/controller-getdata-method.stub b/resources/laravel-code-generator/templates/default/controller-getdata-method.stub new file mode 100644 index 0000000..f35cf67 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-getdata-method.stub @@ -0,0 +1,15 @@ + + /** + * Get the request's data from the request. + * + * [% request_name_comment %] + * @return array + */ + [% visibility_level %] function getData([% type_hinted_request_name %]) + { + $data = [% request_variable %]->only([% fillable %]); +[% file_snippet %] +[% boolean_snippet %] +[% string_to_null_snippet %] + return $data; + } \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/controller-upload-method-5.3.stub b/resources/laravel-code-generator/templates/default/controller-upload-method-5.3.stub new file mode 100644 index 0000000..45b9a51 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-upload-method-5.3.stub @@ -0,0 +1,19 @@ + + /** + * Moves the attached file to the server. + * + * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file + * + * @return string + */ + protected function moveFile($file) + { + if (!$file->isValid()) { + return ''; + } + + $path = config('laravel-code-generator.files_upload_path', 'uploads'); + $saved = $file->store('public/' . $path, config('filesystems.default')); + + return substr($saved, 7); + } diff --git a/resources/laravel-code-generator/templates/default/controller-upload-method.stub b/resources/laravel-code-generator/templates/default/controller-upload-method.stub new file mode 100644 index 0000000..3354a45 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller-upload-method.stub @@ -0,0 +1,20 @@ + + /** + * Moves the attached file to the server. + * + * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file + * + * @return string + */ + protected function moveFile($file) + { + if (!$file->isValid()) { + return ''; + } + + $fileName = sprintf('%s.%s', uniqid(), $file->getClientOriginalExtension()); + $destinationPath = config('laravel-code-generator.files_upload_path','uploads'); + $path = $file->move($destinationPath, $fileName); + + return $destinationPath . '/' . $fileName; + } \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/controller.stub b/resources/laravel-code-generator/templates/default/controller.stub new file mode 100644 index 0000000..fbd784e --- /dev/null +++ b/resources/laravel-code-generator/templates/default/controller.stub @@ -0,0 +1,126 @@ +route('[% index_route_name %]') + ->with('success_message', [% model_was_added %]); + } + + /** + * Display the specified [% model_name %]. + * + * @param int $id + * + * @return \Illuminate\View\View + */ + public function show($id) + { + $[% model_name_singular_variable %] = [% model_name_class %]::[% with_relations_for_show %]findOrFail($id); + + return view('[% show_view_name %]'[% view_variables_for_show %]); + } + + /** + * Show the form for editing the specified [% model_name %]. + * + * @param int $id + * + * @return \Illuminate\View\View + */ + public function edit($id) + { + $[% model_name_singular_variable %] = [% model_name_class %]::findOrFail($id); + [% relation_collections %] + + return view('[% edit_view_name %]'[% view_variables_for_edit %]); + } + + /** + * Update the specified [% model_name %] in the storage. + * + * @param int $id + * @param [% request_fullname %] [% request_variable %] + * + * @return \Illuminate\Http\RedirectResponse | \Illuminate\Routing\Redirector + */ + public function update($id, [% type_hinted_request_name %]) + { + [% call_affirm %] + $[% data_variable %] = [% call_get_data %]; + [% on_update_setter %] + $[% model_name_singular_variable %] = [% model_name_class %]::findOrFail($id); + $[% model_name_singular_variable %]->update($[% data_variable %]); + + return redirect()->route('[% index_route_name %]') + ->with('success_message', [% model_was_updated %]); + } + + /** + * Remove the specified [% model_name %] from the storage. + * + * @param int $id + * + * @return \Illuminate\Http\RedirectResponse | \Illuminate\Routing\Redirector + */ + public function destroy($id) + { + try { + $[% model_name_singular_variable %] = [% model_name_class %]::findOrFail($id); + $[% model_name_singular_variable %]->delete(); + + return redirect()->route('[% index_route_name %]') + ->with('success_message', [% model_was_deleted %]); + } catch (Exception $exception) { + + return back()->withInput() + ->withErrors(['unexpected_error' => [% unexpected_error %]]); + } + } +[% affirm_method %] +[% get_data_method %] +[% upload_method %] +} diff --git a/resources/laravel-code-generator/templates/default/create.blade.stub b/resources/laravel-code-generator/templates/default/create.blade.stub new file mode 100644 index 0000000..ac5dfc4 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/create.blade.stub @@ -0,0 +1,46 @@ +@extends('[% layout_name %]') + +@section('content') + +
+ +
+

[% create_model %]

+
+ + + +
+
+ + +
+ + @if ($errors->any()) + + @endif + +
+ {{ csrf_field() }} + @include ('[% form_view_name %]', [ + '[% model_name_singular_variable %]' => null, + ]) + +
+ +
+ +
+ +
+
+ +@endsection + + diff --git a/resources/laravel-code-generator/templates/default/edit.blade.stub b/resources/laravel-code-generator/templates/default/edit.blade.stub new file mode 100644 index 0000000..081642d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/edit.blade.stub @@ -0,0 +1,47 @@ +@extends('[% layout_name %]') + +@section('content') + +
+ +
+

{{ !empty([% model_header %]) ? [% model_header %] : '[% model_name_title %]' }}

+
+ + + + + + + +
+
+ +
+ + @if ($errors->any()) + + @endif + +
+ {{ csrf_field() }} + + @include ('[% form_view_name %]', [ + '[% model_name_singular_variable %]' => $[% model_name_singular_variable %], + ]) + +
+ +
+
+ +
+
+ +@endsection \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-file-field.blade.stub b/resources/laravel-code-generator/templates/default/form-file-field.blade.stub new file mode 100644 index 0000000..06fe6cf --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-file-field.blade.stub @@ -0,0 +1,14 @@ +
+ +
+ + @if (isset($[% model_name_singular_variable %]->[% field_name %]) && !empty($[% model_name_singular_variable %]->[% field_name %])) + +
+
+ +
+ +
+ + @endif diff --git a/resources/laravel-code-generator/templates/default/form-helper-field.blade.stub b/resources/laravel-code-generator/templates/default/form-helper-field.blade.stub new file mode 100644 index 0000000..d34652f --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-helper-field.blade.stub @@ -0,0 +1 @@ + {!! $errors->first('[% field_name %]', '
:message
') !!} \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-input-field.blade.stub b/resources/laravel-code-generator/templates/default/form-input-field.blade.stub new file mode 100644 index 0000000..fd62a05 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-input-field.blade.stub @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-input-wrapper.blade.stub b/resources/laravel-code-generator/templates/default/form-input-wrapper.blade.stub new file mode 100644 index 0000000..ac7c9cf --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-input-wrapper.blade.stub @@ -0,0 +1,8 @@ + +
+[% field_label %] +
+[% field_input %] +[% field_validation_helper %] +
+
diff --git a/resources/laravel-code-generator/templates/default/form-label-field.blade.stub b/resources/laravel-code-generator/templates/default/form-label-field.blade.stub new file mode 100644 index 0000000..b48e5f3 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-label-field.blade.stub @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-month-field.blade.stub b/resources/laravel-code-generator/templates/default/form-month-field.blade.stub new file mode 100644 index 0000000..8ba00e6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-month-field.blade.stub @@ -0,0 +1,8 @@ + diff --git a/resources/laravel-code-generator/templates/default/form-nolabel-field.blade.stub b/resources/laravel-code-generator/templates/default/form-nolabel-field.blade.stub new file mode 100644 index 0000000..e1ad396 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-nolabel-field.blade.stub @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-password-field.blade.stub b/resources/laravel-code-generator/templates/default/form-password-field.blade.stub new file mode 100644 index 0000000..6f87c4e --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-password-field.blade.stub @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-pickitems-field.blade.stub b/resources/laravel-code-generator/templates/default/form-pickitems-field.blade.stub new file mode 100644 index 0000000..e8c4fc2 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-pickitems-field.blade.stub @@ -0,0 +1,6 @@ +
+ + +
diff --git a/resources/laravel-code-generator/templates/default/form-pickitems-inline-field.blade.stub b/resources/laravel-code-generator/templates/default/form-pickitems-inline-field.blade.stub new file mode 100644 index 0000000..08568c6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-pickitems-inline-field.blade.stub @@ -0,0 +1,6 @@ +
+ + +
diff --git a/resources/laravel-code-generator/templates/default/form-request.stub b/resources/laravel-code-generator/templates/default/form-request.stub new file mode 100644 index 0000000..22ecfd7 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-request.stub @@ -0,0 +1,35 @@ +has('[% field_name %]') ? ' is-invalid' : '' }}[% css_class %]" id="[% field_name %]" name="[% field_name %]"[% field_multiple %][% required_field %]> + [% placeholder %] + @foreach ([% field_items %] as $key => [% field_item %]) + + @endforeach + + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-selectrange-field.blade.stub b/resources/laravel-code-generator/templates/default/form-selectrange-field.blade.stub new file mode 100644 index 0000000..c35ab34 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-selectrange-field.blade.stub @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form-textarea-field.blade.stub b/resources/laravel-code-generator/templates/default/form-textarea-field.blade.stub new file mode 100644 index 0000000..1f1d3e5 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form-textarea-field.blade.stub @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/form.blade.stub b/resources/laravel-code-generator/templates/default/form.blade.stub new file mode 100644 index 0000000..ad6d762 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/form.blade.stub @@ -0,0 +1 @@ +[% form_fields_html %] diff --git a/resources/laravel-code-generator/templates/default/index.blade.stub b/resources/laravel-code-generator/templates/default/index.blade.stub new file mode 100644 index 0000000..7eae1a6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/index.blade.stub @@ -0,0 +1,78 @@ +@extends('[% layout_name %]') + +@section('content') + + @if(Session::has('success_message')) + + @endif + +
+ +
+

[% model_name_plural_title %]

+
+ + + +
+
+ + @if(count($[% model_name_plural_variable %]) == 0) +
+

[% no_models_available %]

+
+ @else +
+
+ + + + +[% header_cells %] + + + + + @foreach($[% model_name_plural_variable %] as $[% model_name_singular_variable %]) + +[% body_cells %] + + + @endforeach + +
+ +
+ + {{ csrf_field() }} + +
+ + + + + + + + +
+ +
+ +
+ +
+ + {!! $[% model_name_plural_variable %]->links('[% pagination_view_name %]') !!} +
+ + @endif + +
+@endsection \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/index.body.cell.blade.stub b/resources/laravel-code-generator/templates/default/index.body.cell.blade.stub new file mode 100644 index 0000000..99bdccb --- /dev/null +++ b/resources/laravel-code-generator/templates/default/index.body.cell.blade.stub @@ -0,0 +1 @@ + {{ [% field_value %] }} \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/index.header.cell.blade.stub b/resources/laravel-code-generator/templates/default/index.header.cell.blade.stub new file mode 100644 index 0000000..8ca0b94 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/index.header.cell.blade.stub @@ -0,0 +1 @@ + [% field_title %] \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/language.stub b/resources/laravel-code-generator/templates/default/language.stub new file mode 100644 index 0000000..4a711de --- /dev/null +++ b/resources/laravel-code-generator/templates/default/language.stub @@ -0,0 +1,5 @@ + + + + + + + {{ config('app.name', '[% application_name %]') }} + + + + {{-- --}} + + + + + +
+ @yield('content') +
+ + + {{-- --}} + + diff --git a/resources/laravel-code-generator/templates/default/login-partial.stub b/resources/laravel-code-generator/templates/default/login-partial.stub new file mode 100644 index 0000000..86f73df --- /dev/null +++ b/resources/laravel-code-generator/templates/default/login-partial.stub @@ -0,0 +1,10 @@ +@if (Route::has('login')) + +@endif \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/migration-schema-down.stub b/resources/laravel-code-generator/templates/default/migration-schema-down.stub new file mode 100644 index 0000000..22fa175 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/migration-schema-down.stub @@ -0,0 +1 @@ +Schema::[% connection_name %]drop('[% table_name %]'); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/migration-schema-up.stub b/resources/laravel-code-generator/templates/default/migration-schema-up.stub new file mode 100644 index 0000000..871cdc3 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/migration-schema-up.stub @@ -0,0 +1,4 @@ +Schema::[% connection_name %][% operation_name %]('[% table_name %]', function(Blueprint $table) + { +[% blue_print_body %] + }); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/migration.stub b/resources/laravel-code-generator/templates/default/migration.stub new file mode 100644 index 0000000..43bfce1 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/migration.stub @@ -0,0 +1,27 @@ +getDateFormat(), $value)->format('[% date_format %]'); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model-accessor-multiple-answers.stub b/resources/laravel-code-generator/templates/default/model-accessor-multiple-answers.stub new file mode 100644 index 0000000..bb17361 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-accessor-multiple-answers.stub @@ -0,0 +1 @@ +return json_decode($value) ?: []; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model-accessor.stub b/resources/laravel-code-generator/templates/default/model-accessor.stub new file mode 100644 index 0000000..cd9c029 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-accessor.stub @@ -0,0 +1,10 @@ + /** + * Get [% field_name %] in array format + * + * @param string $value + * @return array + */ + public function get[% field_name_cap %]Attribute($value) + { + [% content %] + } diff --git a/resources/laravel-code-generator/templates/default/model-mutator-datetime.stub b/resources/laravel-code-generator/templates/default/model-mutator-datetime.stub new file mode 100644 index 0000000..538687d --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-mutator-datetime.stub @@ -0,0 +1 @@ +$this->attributes['[% field_name %]'] = !empty($value) ? \DateTime::createFromFormat('[% date_format %]', $value) : null; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model-mutator-multiple-answers.stub b/resources/laravel-code-generator/templates/default/model-mutator-multiple-answers.stub new file mode 100644 index 0000000..0da4880 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-mutator-multiple-answers.stub @@ -0,0 +1 @@ +$this->attributes['[% field_name %]'] = json_encode($value); \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model-mutator.stub b/resources/laravel-code-generator/templates/default/model-mutator.stub new file mode 100644 index 0000000..fc8eae0 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-mutator.stub @@ -0,0 +1,10 @@ + /** + * Set the [% field_name %]. + * + * @param string $value + * @return void + */ + public function set[% field_name_cap %]Attribute($value) + { + [% content %] + } diff --git a/resources/laravel-code-generator/templates/default/model-primary-key.stub b/resources/laravel-code-generator/templates/default/model-primary-key.stub new file mode 100644 index 0000000..925b8ea --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-primary-key.stub @@ -0,0 +1,6 @@ + /** + * The database primary key value. + * + * @var string + */ + protected $primaryKey = '[% primary_key %]'; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model-relation.stub b/resources/laravel-code-generator/templates/default/model-relation.stub new file mode 100644 index 0000000..0ce8050 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-relation.stub @@ -0,0 +1,9 @@ + /** + * Get the [% relation_name %] for this model. + * + * @return [% relation_return_type %] + */ + public function [% relation_name %]() + { + return $this->[% relation_type %]([% relation_params %]); + } diff --git a/resources/laravel-code-generator/templates/default/model-timestamps.stub b/resources/laravel-code-generator/templates/default/model-timestamps.stub new file mode 100644 index 0000000..ca00793 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model-timestamps.stub @@ -0,0 +1,6 @@ + /** + * Indicates if the model should be timestamped. + * + * @var bool + */ + public $timestamps = false; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/model.stub b/resources/laravel-code-generator/templates/default/model.stub new file mode 100644 index 0000000..a80befd --- /dev/null +++ b/resources/laravel-code-generator/templates/default/model.stub @@ -0,0 +1,44 @@ +hasPages()) + +@endif diff --git a/resources/laravel-code-generator/templates/default/routes-8.stub b/resources/laravel-code-generator/templates/default/routes-8.stub new file mode 100644 index 0000000..fb8be75 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/routes-8.stub @@ -0,0 +1,14 @@ + Route::get('/', [[% controller_name %]::class, 'index']) + ->name('[% index_route_name %]'); + Route::get('/create', [[% controller_name %]::class, 'create']) + ->name('[% create_route_name %]'); + Route::get('/show/{[% model_name_singular_variable %]}',[[% controller_name %]::class, 'show']) + ->name('[% show_route_name %]')[% route_id_clause %]; + Route::get('/{[% model_name_singular_variable %]}/edit',[[% controller_name %]::class, 'edit']) + ->name('[% edit_route_name %]')[% route_id_clause %]; + Route::post('/', [[% controller_name %]::class, 'store']) + ->name('[% store_route_name %]'); + Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', [[% controller_name %]::class, 'update']) + ->name('[% update_route_name %]')[% route_id_clause %]; + Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}',[[% controller_name %]::class, 'destroy']) + ->name('[% destroy_route_name %]')[% route_id_clause %]; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/routes-group.stub b/resources/laravel-code-generator/templates/default/routes-group.stub new file mode 100644 index 0000000..23a1f20 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/routes-group.stub @@ -0,0 +1,6 @@ + +Route::group([ + [% prefix %] +], function () { +[% routes %] +}); diff --git a/resources/laravel-code-generator/templates/default/routes.stub b/resources/laravel-code-generator/templates/default/routes.stub new file mode 100644 index 0000000..615d786 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/routes.stub @@ -0,0 +1,14 @@ + Route::get('/', '[% controller_name %]@index') + ->name('[% index_route_name %]'); + Route::get('/create','[% controller_name %]@create') + ->name('[% create_route_name %]'); + Route::get('/show/{[% model_name_singular_variable %]}','[% controller_name %]@show') + ->name('[% show_route_name %]')[% route_id_clause %]; + Route::get('/{[% model_name_singular_variable %]}/edit','[% controller_name %]@edit') + ->name('[% edit_route_name %]')[% route_id_clause %]; + Route::post('/', '[% controller_name %]@store') + ->name('[% store_route_name %]'); + Route::put('[% model_name_snake %]/{[% model_name_singular_variable %]}', '[% controller_name %]@update') + ->name('[% update_route_name %]')[% route_id_clause %]; + Route::delete('/[% model_name_snake %]/{[% model_name_singular_variable %]}','[% controller_name %]@destroy') + ->name('[% destroy_route_name %]')[% route_id_clause %]; \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/show.blade.stub b/resources/laravel-code-generator/templates/default/show.blade.stub new file mode 100644 index 0000000..047f2af --- /dev/null +++ b/resources/laravel-code-generator/templates/default/show.blade.stub @@ -0,0 +1,42 @@ +@extends('[% layout_name %]') + +@section('content') + +
+ +
+

{{ isset([% model_header %]) ? [% model_header %] : '[% model_name_title %]' }}

+
+
+ + {{ csrf_field() }} + + + + + + + + + + + + + + + +
+
+
+ +
+
+[% table_rows %] +
+ +
+
+ +@endsection \ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/show.row.blade.stub b/resources/laravel-code-generator/templates/default/show.row.blade.stub new file mode 100644 index 0000000..1d714e6 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/show.row.blade.stub @@ -0,0 +1,2 @@ +
[% field_title %]
+
{{ [% field_value %] }}
\ No newline at end of file diff --git a/resources/laravel-code-generator/templates/default/view-model.stub b/resources/laravel-code-generator/templates/default/view-model.stub new file mode 100644 index 0000000..d861db4 --- /dev/null +++ b/resources/laravel-code-generator/templates/default/view-model.stub @@ -0,0 +1,30 @@ + +

{{$document_title}}

Rp.0

diff --git a/resources/views/dashboards/bigdata.blade.php b/resources/views/dashboards/bigdata.blade.php index 623c125..1dad3bb 100644 --- a/resources/views/dashboards/bigdata.blade.php +++ b/resources/views/dashboards/bigdata.blade.php @@ -2,28 +2,189 @@ @section('content') -@include('layouts.partials/page-title', ['title' => 'Dashboards', 'subtitle' => 'SIBEDAS']) +@include('layouts.partials/page-title', ['title' => 'Dashboards', 'subtitle' => 'DASHBOARD PIMPINAN']) + + + +
+
+ @component('components.circle', [ + 'document_title' => 'Kekurangan Potensi', + 'document_color' => '#911701', + 'document_type' => 'Pemohon', + 'document_id' => 'chart-all-task', + 'visible_small_circle' => true, + 'style' => 'top:150px;' + ]) + @endcomponent + + @component('components.circle', [ + 'document_title' => 'Target PAD 2024', + 'document_color' => '#020e42', + 'document_type' => 'Pemohon', + 'document_id' => 'chart-all-task', + 'visible_small_circle' => true, + 'style' => 'left:200px;' + ]) + @endcomponent + +
+
+ +
+
+ + + + @component('components.circle', [ + 'document_title' => 'Total Potensi Berkas', + 'document_color' => '#02acfa', + 'document_type' => 'Pemohon', + 'document_id' => 'chart-all-task', + 'visible_small_circle' => true, + 'style' => 'left:400px;top:150px;' + ]) + @endcomponent + +
+
+ +
+
-
-
@component('components.circle', [ 'document_title' => 'Perkiraan Potensi PBG Dari Tata Ruang', 'document_color' => '#bf04bc', 'document_type' => 'Pemohon', 'document_id' => 'chart-all-task', - 'visible_small_circle' => true + 'visible_small_circle' => true, + 'style' => 'left:600px;' + ]) + @endcomponent + +
+
+ + @component('components.circle', [ + 'document_title' => 'Non Usaha', + 'document_color' => '#028399', + 'document_type' => 'Berkas', + 'document_id' => 'chart-non-business', + 'visible_small_circle' => true, + 'style' => 'left:900px;top:150px;' ]) @endcomponent @component('components.circle', [ - 'document_title' => 'Perkiraan Potensi PBG Dari Tata Ruang', - 'document_color' => '#f75b1b', - 'document_type' => 'Pemohon', - 'document_id' => 'chart-all-task', - 'visible_small_circle' => true + 'document_title' => 'Usaha', + 'document_color' => '#616b7d', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'left:900px;top:400px;' ]) @endcomponent + @component('components.circle', [ + 'document_title' => 'Berkas Terverifikasi', + 'document_color' => '#0561f5', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'top:300px;left:200px;' + ]) + @endcomponent + +
+
+ +
+
+ + @component('components.circle', [ + 'document_title' => 'Berkas Belum Terverifikasi', + 'document_color' => '#b973ff', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'top:300px;left:600px;' + ]) + @endcomponent + +
+
+ +
+
+ + + @component('components.circle',[ + 'document_title' => 'Realisasi Terbit PBG', + 'document_color' => '#09ab5a', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'top:550px;left:100px;' + ]) + @endcomponent + +
+
+ + @component('components.circle',[ + 'document_title' => 'Menunggu Klik DPMPTSP', + 'document_color' => '#0294ad', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'top:550px;left:400px' + ]) + @endcomponent + +
+
+ + @component('components.circle',[ + 'document_title' => 'Berproses Di Dinas Teknis', + 'document_color' => '#422519', + 'document_type' => 'Berkas', + 'document_id' => 'chart-business', + 'visible_small_circle' => true, + 'style' => 'top:550px;left:700px' + ]) + @endcomponent +
+
+ +
- @component('components.circle', [ - 'document_title' => 'Target PAD 2024', - 'document_color' => '#020e42', - 'document_type' => 'Pemohon', - 'document_id' => 'chart-all-task', - 'visible_small_circle' => true - ]) - @endcomponent +
- @component('components.circle', [ - 'document_title' => 'Kekurangan Potensi', - 'document_color' => '#911701', - 'document_type' => 'Pemohon', - 'document_id' => 'chart-all-task', - 'visible_small_circle' => true - ]) - @endcomponent - - @component('components.circle', [ - 'document_title' => 'Total Potensi Berkas', - 'document_color' => '#02acfa', - 'document_type' => 'Pemohon', - 'document_id' => 'chart-all-task', - 'visible_small_circle' => true - ]) - @endcomponent -
-
- @component('components.circle', [ - 'document_title' => 'Berkas Terverifikasi', - 'document_color' => '#0561f5', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent - - @component('components.circle', [ - 'document_title' => 'Berkas Belum Terverifikasi', - 'document_color' => '#b973ff', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent -
-
- @component('components.circle', [ - 'document_title' => 'Non Usaha', - 'document_color' => '#028399', - 'document_type' => 'Berkas', - 'document_id' => 'chart-non-business', - 'visible_small_circle' => true - ]) - @endcomponent - @component('components.circle', [ - 'document_title' => 'Usaha', - 'document_color' => '#616b7d', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent - @component('components.circle',[ - 'document_title' => 'Realisasi Terbit PBG', - 'document_color' => '#09ab5a', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent - - @component('components.circle',[ - 'document_title' => 'Berproses Di Dinas Teknis', - 'document_color' => '#422519', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent +
- @component('components.circle',[ - 'document_title' => 'Progress Manual', - 'document_color' => '#0294ad', - 'document_type' => 'Berkas', - 'document_id' => 'chart-business', - 'visible_small_circle' => true - ]) - @endcomponent + + + +
+
+ + + + + + + +
+
+