diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..abd3c5c --- /dev/null +++ b/.env.example @@ -0,0 +1,76 @@ +APP_NAME="NexusCMS" +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL="https://nexuscms.test" + +APP_VERSION="0.1.6-alpha.5" +APP_CODENAME="Anvil" + +APP_LOCALE="en" +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + +APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database + +PHP_CLI_SERVER_WORKERS=4 + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION="mysql" +DB_HOST="127.0.0.1" +DB_PORT="3306" +DB_DATABASE="test" +DB_USERNAME="root" +DB_PASSWORD="root" + +SESSION_DRIVER=database +SESSION_LIFETIME=120 +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database +MEMCACHED_HOST=127.0.0.1 + +CACHE_DRIVER=redis +REDIS_CLIENT=phpredis +REDIS_HOST=127.0.0.1 +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=localhost +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="noreply@nexuscms.test" +MAIL_FROM_NAME="${APP_NAME}" +MAIL_SCHEME=null + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +## Donate Gateways +BRAINTREE_ENVIRONMENT=sandbox +BRAINTREE_MERCHANT_ID= +BRAINTREE_PUBLIC_KEY= +BRAINTREE_PRIVATE_KEY= + +VITE_APP_NAME="${APP_NAME}" + +## NexusCMS API +NEXUS_API_URL=https://api.wow-cms.com/api/github +NEXUS_API_KEY= +NEXUS_API_KEY_HEADER=X-API-Key diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md index 35c1df1..df12e73 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,64 @@ # NexusCMS -

-Build Status -Latest Stable Version -License -

+[![GPL-3.0 License](https://img.shields.io/badge/License-GPL--3.0-green.svg)](https://choosealicense.com/licenses/gpl-3.0/) +![GitHub repo size](https://img.shields.io/github/repo-size/WOW-CMS/NexusCMS) +![GitHub commits since latest release](https://img.shields.io/github/commits-since/WOW-CMS/NexusCMS/latest/feat/0.1.6) +![Release](https://img.shields.io/github/v/release/WOW-CMS/NexusCMS) ## About NexusCMS -NexusCMS is a modern Content Management System built with Laravel. Currently under active development, this project aims to provide a flexible and powerful solution for managing digital content. +Born from our earlier BlizzCMS, a PHP/CodeIgniter 3 project, NexusCMS is a Laravel-based platform designed for teams seeking reliability, flexibility, and a developer-friendly workflow. Over time, we’ve gathered years of community feedback, feature requests, and performance improvements, shaping a single, cohesive codebase that grows with your project, rather than getting in the way. -## Project Status +Our focus has always been on making development easier and more approachable. While we are a team with technical training and experience, we are not “gurus”—we build tools that make sense for real people working on real projects. This philosophy has guided every decision in NexusCMS, from its architecture to its user interface. -🚧 **Currently Under Development** 🚧 +In addition to supporting modern features, we’ve ensured compatibility with all World of Warcraft expansions, including Classic, Retail, and Wrath of the Lich King, as well as the legacy versions of the game. Whether you’re managing a private server, building a community project, or experimenting with new ideas, NexusCMS provides a flexible, stable foundation to help you succeed. + +With a strong focus on community-driven development, we continue to refine and expand NexusCMS based on the feedback and needs of the people who use it, making it not just a tool, but a platform built with the community, for the community. + +## Key Highlights + +- **Years of Expertise** – Over a decade of focused development on CMS architecture and implementation. +- **Laravel 12.x Core** – Modern PHP foundation with strict PSR standards and battle-tested packages. +- **Scalable Infrastructure** – Multi-database, Redis cache, queue workers, and horizontal scaling support. + +## Project Maturity + +NexusCMS is currently in **public alpha** and is **not recommended for production use**. While core functionality is stable and has been tested in several mid-scale environments, the software is still under active development. We are expanding modules, refining documentation, and welcoming community contributions. -This project is in its early stages of development. Features and documentation will be updated regularly. ## Installation 1. Clone the repository: + ```bash + git clone https://github.com/yourusername/NexusCMS.git + cd NexusCMS + ``` + +2. Install dependencies: + ```bash + composer install + npm install && npm run build + ``` + +3. Configure your environment: + ```bash + cp .env.example .env + php artisan key:generate + ``` + +4. Run migrations (configure your database in `.env` first): + ```bash + php artisan migrate + ``` + +5. Start the local server: + ```bash + php artisan serve + ``` + +Visit [http://localhost:8000](http://localhost:8000) and log in with the default admin credentials provided in the `.env` file. + +## Documentation + +[Documentation]() + diff --git a/ROADMAP.md b/ROADMAP.md new file mode 100644 index 0000000..804bb01 --- /dev/null +++ b/ROADMAP.md @@ -0,0 +1,349 @@ +# NexusCMS Roadmap — 0.1.6 → 0.2.0 + +> Solo-developer focused. Phases are ordered by dependency, not by date. +> Every release ships a usable, non-broken version on a fresh install. + +--- + +## The Arc + +``` +Anvil → Vault → Hearth → Spire → Nexus + forge hoard gather watch connect +``` + +| Version | Codename | Theme | Headline | +|---------|-------------|----------------------------------------|---------------------------------------------------------| +| 0.1.6 | **Anvil** | Foundation. Shape the metal. | Stability, refunds, hardened middleware, real tests. | +| 0.1.7 | **Vault** | Store of value. Hold it safely. | Multi-gateway donations + real Store CRUD. | +| 0.1.8 | **Hearth** | Gathering place. The warm spot. | Real-time notifications, profiles, 2FA, dark mode. | +| 0.1.9 | **Spire** | High vantage. The watchtower. | Operational dashboard, backups 2.0, alert webhooks. | +| 0.2.0 | **Nexus** | The crossing point. The platform. | Public REST API v1 + OAuth2 + theming + multi-tenant. | + +--- + +## Guiding Principles + +1. **Ship a complete phase, not half of two.** Every release is usable end-to-end on a fresh install. +2. **Refactors before features.** Pay down debt as you go so the headline feature lands on solid ground. +3. **One big thing per milestone.** Smaller releases are mostly quality; one release carries the headline. +4. **Modules stay opt-in.** Nothing in a module becomes a blocker for the core install. +5. **No paid infrastructure required.** Every headline feature must work on a single VPS. Optional integrations (Discord, S3, etc.) are pluggable. + +--- + +## 🟢 0.1.6 — **Anvil** + +> Foundation. Where metal is shaped into something reliable. + +### Stability & bug fixes + +- Refunds flow for `DonationTransaction` (model column, controller method, admin button, `DonationPolicy`). +- `User->dp` / `User->vp` consistency — confirm columns exist, add accessor + cast if missing. +- Replace hardcoded dashboard counters in `app/Modules/Admin/Resources/views/index.blade.php` with real queries. +- Sanity sweep: every `@push('styles')` is well-formed; no inline `style=""` left; no duplicate `@section('content')` anywhere. + +### Quality + +- Mail on successful donation (`DonationReceiptMail` + queue). +- Rate-limit `donate.checkout` (`throttle:5,1`). +- PDF receipt via a queued Artisan command (`php artisan donate:receipt-pdf {tx}`). +- CSRF token meta + `axios` interceptor already in place — verify it's used everywhere there's AJAX (menu manager, route picker). +- Strengthen `SecurityHeaders` middleware: add `Permissions-Policy`, harden `Content-Security-Policy` with nonce for inline scripts. + +### Testing + +- Feature tests for `DonateController` (with mocked Braintree). +- Feature tests for `MenuManagerController` (CRUD + reorder). +- Feature tests for `UpdateService` (with mocked GitHub). +- Feature tests for `SecurityHeaders` middleware. +- Optional: browser tests (Pest + Laravel Dusk) for menu drag & drop and donate checkout. + +### DX + +- One-command install + seed: `php artisan nexus:install --demo`. +- `php artisan nexus:health` (uses `SystemInfoService` and reports issues). + +### Done when + +- All `must` and `should` items above are merged. +- No `alpha` / `beta` tag in `config/app.php` — just `0.1.6`. +- `CHANGELOG.md` lists every closed issue. + +--- + +## 🔵 0.1.7 — **Vault** + +> Store of value. Where money and modules accumulate safely. + +### Headline: Multi-gateway donations with a unified interface + +- Move `GatewayManager` behind a proper `DonationService` that handles: + - Gateway selection. + - Transaction lifecycle: `pending → completed / failed / refunded`. + - Idempotency key. + - Webhook routing. +- Add **Stripe** gateway (`StripeGateway implements PaymentGatewayInterface`). +- Add **PayPal** gateway (IPN + REST). +- Per-gateway settings tabs in `Settings → Payment`. +- Gateway enable/disable + sandbox toggle per gateway. + +### Store: real persistence + +- Replace JSON product list with a proper admin CRUD backed by `store_products` table (migration already exists). +- Admin UI: list, create, edit, archive products. Reuse the existing `GenericCrudController` machinery. +- Frontend `store.blade.php` reads from DB and filters by realm / type / category. +- Purchase history per user. + +### Forum v2 + +- Thread subscriptions + email notifications. +- Reactions (curated emoji set, no third-party). +- Soft-delete with "deleted by" + restore for moderators. +- Per-forum permissions — finish what's already partially in place. + +### Admin polish + +- Audit log: who did what, when, from where. New `audit_logs` table + observer on every admin controller. +- Bulk actions on Users: ban, role change, send password reset. +- Bulk actions on Realms: test connection, sync characters. +- Saved filters on Users / Transactions. + +### Refactor + +- Extract a real `PermissionService` so policies stop reading settings directly. +- Centralize flash messages via a Blade component: ``. + +### Done when + +- A donation can be started in Braintree sandbox and completed in Stripe sandbox with the same UX. +- The admin can create, edit, archive, and unarchive a store product through the UI. +- Every admin write action appears in `audit_logs`. + +--- + +## 🟣 0.1.8 — **Hearth** + +> Gathering place. Where the community comes back to. + +### Headline: Real-time notifications with Laravel Reverb + +- Bell icon in the layout becomes functional. +- Channels: + - New forum reply. + - New donation received (admin). + - New comment on a followed news post. + - System alert. +- Server-side: broadcasting events. +- Client-side: a small JS listener that fetches and renders. +- Per-user preferences: in-app, email, both, none. + +### News & content + +- Featured image, gallery, tags. +- Scheduled publishing (`publish_at` + scheduler). +- RSS feed per category. +- Full-text search on news + forum threads (SQLite FTS5 or MySQL FULLTEXT). + +### User-facing account + +- Profile page: linked realms, donation history, forum threads, news comments. +- Notification center (in-app history). +- Two-factor auth (TOTP) — opt-in per user, mandatory for admins. + +### Frontend + +- Dark mode toggle with persisted preference. +- Locale switcher that respects URL (`/es/...`, `/en/...`) and user preference. +- PWA basics: manifest, service worker, offline fallback. + +### Refactor + +- Move all hardcoded English strings into `lang/en` + `lang/es` (donation and store views have a lot). +- Standardize icons: one set (FontAwesome subset or Lucide) across all modules. + +### Done when + +- An admin sees a notification within ~2 seconds of a new donation, both in the bell icon and via the optional Discord webhook. +- A forum subscriber receives an email and an in-app notification when a reply is posted. +- Dark mode preference survives a logout. + +--- + +## 🟠 0.1.9 — **Spire** + +> High vantage point. The watchtower over the whole operation. + +### Headline: Operational dashboard & alerting + +- Replace the current admin dashboard with a real ops view: + - Error rate. + - p95 response time. + - Donation / hour. + - Online players / realm. + - Queue depth. +- Optional integrations: + - Discord webhooks (admin alerts, new donations). + - Telegram bot. + - Email digests. +- SLO tracking: configurable thresholds, breach notifications. + +### Backups 2.0 + +- Scheduled backups (Laravel scheduler). +- Off-site destinations: S3, Backblaze B2, FTP/SFTP. +- Encrypted backups (per-environment key). +- One-click restore to a chosen environment with a dry-run preview. + +### Updates 2.0 + +- Pre-flight check before applying: + - PHP version. + - Required extensions. + - Migration compatibility. + - Disk space. +- Staged rollout: download → verify checksum → migrate → swap symlinks → rollback on failure. +- Update channels: `stable`, `beta`, `nightly`. + +### Security + +- IP allowlist for `/acp` (optional). +- Force password reset on next login for users flagged in a breach. +- Session hardening dashboard: active sessions, kill remote. + +### DX + +- `php artisan nexus:smoke` — boots the app, hits key routes, verifies DB + cache + queue, reports health. +- Generated OpenAPI spec for the internal admin API. +- Telemetry opt-in (anonymous version + module count for project stats). + +### Done when + +- A scheduled backup runs at 03:00 every night, ships to S3, and is restorable in a dry run. +- A breach of an SLO threshold pings a Discord channel within one minute. +- `nexus:smoke` exits non-zero when any dependency is broken. + +--- + +## 🔴 0.2.0 — **Nexus** + +> The crossing point. Where NexusCMS stops being a CMS and becomes a platform. + +### Headline: Public REST API v1 + +- Versioned, OAuth2-protected (Passport or first-party OAuth via Sanctum). +- Resources: + - Users (scoped). + - Realms. + - Characters. + - News. + - Forum threads. + - Donations (read-only). + - Store products. +- Webhooks: + - `donation.completed` + - `donation.refunded` + - `user.created` + - `forum.thread.created` +- Rate limiting per token. +- Public OpenAPI 3.1 spec served at `/api/docs` (using Scribe or Spectacle). +- Client SDKs: PHP, JavaScript / TypeScript (auto-generated from OpenAPI). +- Sandbox keys + live keys, per-key scopes. + +### Theming & white-label + +- Theme = Blade views + CSS + JSON config, packaged as a module. +- Three reference themes shipped: `default-dark`, `default-light`, `esports`. +- Theme marketplace metadata (manifest, preview image, version). Distribution itself is 0.3.x. + +### Multi-tenant light + +- Single installation serves multiple isolated realm communities, each with its own domain / subdomain, theme, and admin team. +- Tenant-aware cache keys, queue names, log channels. +- Cross-tenant prevention is test-covered. + +### Breaking-change prep + +- Drop Laravel 11 support, require Laravel 12. +- Drop PHP 8.2 support, require PHP 8.3+. +- Public API v1 contract frozen; deprecation policy documented. + +### Refactor + +- Extract core into `NexusCMS\Core` package consumable by both the monolithic app and a future slim headless install. +- Move admin module behind a feature flag so a headless install can run without it. + +### Done when + +- A partner can register an OAuth app, get a token, and list donations with one curl command. +- Two tenants on the same install cannot see each other's data, even through the admin panel. +- The OpenAPI spec builds and ships green from CI. + +--- + +## ⚪ Stretch / Post-0.2.0 (parking lot) + +These are real candidates but **explicitly out** of the 0.1.6 → 0.2.0 line. They get evaluated after 0.2.0 ships. + +- **Theme marketplace** — distribution + payments for community themes. +- **Plugin marketplace** — discovery + signed distribution of community modules. +- **Mobile app** (React Native or Flutter) consuming the public API. +- **AI assistant module** — admin-side natural-language queries over the DB. +- **Mobile push** via the same Reverb channel, bridged through APNs / FCM. +- **Donation store frontends** as embeddable widgets (``). + +--- + +## Decision Log (assumptions made) + +1. **Solo-dev throughput**: each phase is a few weeks of focused work, not months. Anything that doesn't fit in one phase gets split or parked. +2. **WoW private-server context stays primary**: the realm model, TrinityCore integration, and SOAP account creator stay first-class. Multi-game expansion is out of scope. +3. **No paid infrastructure required**: every headline feature works on a single VPS. Optional integrations are pluggable. +4. **Backwards compatibility within 0.1.x**: data and config migrations only when truly necessary. Schema-breaking changes are reserved for 0.2.0. +5. **English-first, Spanish-mirrored**: copy lives in `lang/en`, with `lang/es` updated as part of the same PR. No machine-translation pipelines in core. +6. **Solo-dev sanity**: each phase's "Done when" must be checkable by one person in one sitting. If it isn't, the phase is too big. + +--- + +## How to use the codenames + +### In `CHANGELOG.md` + +```markdown +## 0.2.0 "Nexus" — Headless & Extensible + +Public REST API v1 with OAuth2... +``` + +### In commit messages and PR titles + +``` +feat(api): release public REST v1 (0.2.0 "Nexus") +``` + +### In `config/app.php` + +```php +'version' => env('APP_VERSION', '0.2.0'), +'codename' => env('APP_CODENAME', 'Nexus'), +``` + +The `SystemInfoService` already exposes the version; wire it to also expose the codename so the admin dashboard reads: + +``` +NexusCMS 0.2.0 · Nexus +``` + +--- + +## Micro-release convention + +If a phase grows too large for one release slot, split it into a `.1` and `.2` keeping the same codename suffix: + +| Release | Codename | +|-------------|-----------------| +| 0.1.7.0 | Vault | +| 0.1.7.1 | Vault Patch | +| 0.1.7.2 | Vault Reforge | + +Use the suffix only when the work is recognizably inside the same codename's theme. If you have to explain why a patch fits, it doesn't — cut a new minor instead. diff --git a/app/Console/Commands/MakeModuleCommand.php b/app/Console/Commands/MakeModuleCommand.php new file mode 100644 index 0000000..e316828 --- /dev/null +++ b/app/Console/Commands/MakeModuleCommand.php @@ -0,0 +1,131 @@ +argument('name')); + $path = base_path("app/Modules/{$name}"); + + if (File::exists($path) && !$this->option('force')) { + $this->error("The module [{$name}] already exists! Use --force to overwrite."); + return self::FAILURE; + } + + // Ensure clean slate when --force is used + if ($this->option('force') && File::exists($path)) { + File::deleteDirectory($path); + } + + // Directory structure to be created inside the module + $directories = [ + 'Services', + 'Domain/Models', + 'Domain/Interfaces', + 'Infrastructure/Repositories', + 'Http/Controllers', + 'Http/Requests', + 'Providers', + 'Resources/views', + 'Infrastructure/Database/migrations', + ]; + + foreach ($directories as $dir) { + File::makeDirectory("{$path}/{$dir}", 0755, true, true); + } + + // Generate module.json configuration file + $moduleJson = [ + 'name' => $name, + 'enabled' => true, + 'module_type' => 'third_party', + 'routes' => true, + 'migrations' => true, + 'views' => true, + 'namespace' => "Modules\\{$name}" + ]; + + File::put("{$path}/module.json", json_encode($moduleJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + + // Generate default routes file + $routes = <<prefix(strtolower('{$name}')) + ->group(function () { + Route::get('/', [\\Modules\\{$name}\\Http\\Controllers\\{$name}Controller::class, 'index']); + }); +PHP; + File::put("{$path}/Http/routes.php", $routes); + + // Generate base controller + $controller = <<json(['message' => '{$name} module is working']); + } +} +PHP; + File::put("{$path}/Http/Controllers/{$name}Controller.php", $controller); + + // Generate module service provider + $provider = <<info("Module [{$name}] created successfully at app/Modules/{$name}"); + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/MakeModuleCrudCommand.php b/app/Console/Commands/MakeModuleCrudCommand.php new file mode 100644 index 0000000..e69de29 diff --git a/app/Console/Commands/PermissionsCommand.php b/app/Console/Commands/PermissionsCommand.php new file mode 100644 index 0000000..85941f9 --- /dev/null +++ b/app/Console/Commands/PermissionsCommand.php @@ -0,0 +1,68 @@ +files = $files; + } + + public function handle() + { + $this->info('Setting required directory permissions...'); + + $directories = [ + storage_path(), + storage_path('app'), + storage_path('framework'), + storage_path('logs'), + base_path('bootstrap/cache'), + ]; + + foreach ($directories as $directory) { + if (!$directory) { + continue; + } + + if (!$this->files->exists($directory)) { + $this->files->makeDirectory($directory, 0775, true, true); + } + + $this->setPermissions($directory); + } + + $this->info('Directory permissions updated successfully.'); + + return self::SUCCESS; + } + + protected function setPermissions(string $directory): void + { + if (!$this->files->isDirectory($directory)) { + return; + } + + $this->files->chmod($directory, 0775); + + foreach ($this->files->directories($directory) as $dir) { + $this->setPermissions($dir); + } + + foreach ($this->files->files($directory) as $file) { + $this->files->chmod($file->getPathname(), 0664); + } + } +} + diff --git a/app/Enums/Emulator.php b/app/Enums/Emulator.php index 9506947..1228f5a 100644 --- a/app/Enums/Emulator.php +++ b/app/Enums/Emulator.php @@ -6,4 +6,19 @@ enum Emulator: string { case TRINITYCORE = 'TC'; case AZEROTHCORE = 'AC'; + + public const LABELS = [ + self::TRINITYCORE->value => 'TrinityCore', + self::AZEROTHCORE->value => 'AzerothCore', + ]; + + public const DESCRIPTIONS = [ + self::TRINITYCORE->value => 'TrinityCore es un emulador de servidor de World of Warcraft que se centra en la estabilidad y el rendimiento, ofreciendo una experiencia de juego fluida y sin interrupciones.', + self::AZEROTHCORE->value => 'AzerothCore es un fork de TrinityCore que se enfoca en la innovación y la adición de nuevas características, proporcionando una experiencia de juego más dinámica y personalizada.', + ]; + + public const URN = [ + self::TRINITYCORE->value => 'TC', + self::AZEROTHCORE->value => 'AC', + ]; } diff --git a/app/Enums/WoWConstants.php b/app/Enums/WoWConstants.php index 469e3ca..87d588c 100755 --- a/app/Enums/WoWConstants.php +++ b/app/Enums/WoWConstants.php @@ -16,6 +16,7 @@ class WoWConstants public const EXPANSION_SHADOWLANDS = 8; public const EXPANSION_DRAGONFLIGHT = 9; public const EXPANSION_WAR_WITHIN = 10; + public const EXPANSION_MIDNIGHT = 11; // Classes public const CLASS_WARRIOR = 1; @@ -41,16 +42,28 @@ class WoWConstants public const RACE_TAUREN = 6; public const RACE_GNOME = 7; public const RACE_TROLL = 8; - public const RACE_BLOODELF = 9; - public const RACE_DRAENEI = 10; - public const RACE_WOLF = 11; - public const RACE_GOBLIN = 12; - public const RACE_PANDAREN = 13; - public const RACE_DARK_IRON_DWARF = 14; - public const RACE_HIGHMOUNTAIN_TAUREN = 15; - public const RACE_VOID_ELF = 16; - public const RACE_MAGHAR_ORC = 17; - + public const RACE_GOBLIN = 9; + public const RACE_BLOODELF = 10; + public const RACE_DRAENEI = 11; + public const RACE_WORGEN = 22; + public const RACE_PANDAREN = 24; // Neutral Pandaren + public const RACE_PANDAREN_ALLIANCE = 25; // Alliance Pandaren + public const RACE_PANDAREN_HORDE = 26; // Horde Pandaren + public const RACE_NIGHTBORNE = 27; // Nightborne + public const RACE_HIGHMOUNTAIN_TAUREN = 28; // Highmountain Tauren + public const RACE_VOID_ELF = 29; // Void Elf + public const RACE_LIGHTFORGED_DRAENEI = 30; // Lightforged Draenei + public const RACE_ZANDALARI_TROLL = 31; // Zandalari Troll + public const RACE_KUL_TIRAN = 32; // Kul'Tiran + public const RACE_DARK_IRON_DWARF = 34; // Dark Iron Dwarf + public const RACE_VULPERA = 35; // Vulpera + public const RACE_MAGHAR_ORC = 36; // Maghar Orc + public const RACE_MECAGHOME = 37; // Mecaghome + public const RACE_DRACTHYR_ALLIANCE = 52; // Draconic + public const RACE_DRACTHYR_HORDE = 70; // Draconic + public const RACE_EARTHEN_HORDE = 84; // Earthen + public const RACE_EARTHEN_ALLIANCE = 85; // Earthen + public const EXPANSION_NAMES = [ self::EXPANSION_VANILLA => 'Vanilla', self::EXPANSION_TBC => 'The Burning Crusade', @@ -63,6 +76,7 @@ class WoWConstants self::EXPANSION_SHADOWLANDS => 'Shadowlands', self::EXPANSION_DRAGONFLIGHT => 'Dragonflight', self::EXPANSION_WAR_WITHIN => 'The War Within', + self::EXPANSION_MIDNIGHT => 'Midnight', ]; public const EXPANSION_VERSIONS = [ @@ -91,6 +105,7 @@ class WoWConstants self::EXPANSION_SHADOWLANDS => 'border-blue-500', self::EXPANSION_DRAGONFLIGHT => 'border-green-500', self::EXPANSION_WAR_WITHIN => 'border-yellow-500', + self::EXPANSION_MIDNIGHT => 'border-pink-500', ]; public const EXPANSION_MAX_LEVEL = [ @@ -105,6 +120,7 @@ class WoWConstants self::EXPANSION_SHADOWLANDS => 60, self::EXPANSION_DRAGONFLIGHT => 70, self::EXPANSION_WAR_WITHIN => 80, + self::EXPANSION_MIDNIGHT => 90, ]; public const CLASS_NAMES = [ @@ -153,8 +169,8 @@ class WoWConstants 11 => 'Draenei', 22 => 'Worgen', 24 => 'Pandaren', - 25 => 'Pandaren', - 26 => 'Pandaren', + 25 => 'Pandaren Alliance', + 26 => 'Pandaren Horde', 27 => 'Nightborne', 28 => 'Highmountain Tauren', 29 => 'Void Elf', @@ -165,7 +181,9 @@ class WoWConstants 35 => 'Vulpera', 36 => "Mag'har Orc", 37 => 'Mechagnome', - 52 => 'Dracthyr', - 70 => 'Dracthyr', + 52 => 'Draconic Alliance', + 70 => 'Draconic Horde', + 84 => 'Earthen Horde', + 85 => 'Earthen Alliance', ]; } diff --git a/app/Helpers/ModuleLoader.php b/app/Helpers/ModuleLoader.php new file mode 100644 index 0000000..b4db24e --- /dev/null +++ b/app/Helpers/ModuleLoader.php @@ -0,0 +1,13 @@ + */ - public static function all() + public static function all(): Collection { return Realm::all(); } @@ -23,7 +24,7 @@ public static function all() * @param int $id The ID of the realm to find * @return Realm|null Returns the realm if found, null otherwise */ - public static function find($id) + public static function find(int $id): ?Realm { return Realm::find($id); } @@ -35,28 +36,21 @@ public static function find($id) * @param int|null $id The ID of the constant to get * @return string|null Returns the constant value for the given type and ID, or null if not found */ - public static function getWoWConstant(string $type = 'expansion', ?int $id = null) + public static function getWoWConstant(string $type = 'expansion', ?int $id = null): string|int|null { if ($id === null) { return null; } - switch ($type) { - case 'expansion': - return WoWConstants::EXPANSION_NAMES[$id] ?? null; - case 'version': - return WoWConstants::EXPANSION_VERSIONS[$id] ?? null; - case 'color': - return WoWConstants::EXPANSION_COLORS[$id] ?? null; - case 'class': - return WoWConstants::CLASS_NAMES[$id] ?? null; - case 'class_color': - return WoWConstants::CLASS_COLORS[$id] ?? null; - case 'race': - return WoWConstants::RACE_NAMES[$id] ?? null; - default: - return null; - } + return match ($type) { + 'expansion' => WoWConstants::EXPANSION_NAMES[$id] ?? null, + 'version' => WoWConstants::EXPANSION_VERSIONS[$id] ?? null, + 'color' => WoWConstants::EXPANSION_COLORS[$id] ?? null, + 'class' => WoWConstants::CLASS_NAMES[$id] ?? null, + 'class_color' => WoWConstants::CLASS_COLORS[$id] ?? null, + 'race' => WoWConstants::RACE_NAMES[$id] ?? null, + default => null, + }; } /** @@ -73,7 +67,15 @@ public static function getFactionByRace(int $race): ?string WoWConstants::RACE_NIGHT_ELF, WoWConstants::RACE_GNOME, WoWConstants::RACE_DRAENEI, + WoWConstants::RACE_WORGEN, + WoWConstants::RACE_PANDAREN_ALLIANCE, WoWConstants::RACE_VOID_ELF, + WoWConstants::RACE_LIGHTFORGED_DRAENEI, + WoWConstants::RACE_KUL_TIRAN, + WoWConstants::RACE_DARK_IRON_DWARF, + WoWConstants::RACE_MECAGHOME, + WoWConstants::RACE_DRACTHYR_ALLIANCE, + WoWConstants::RACE_EARTHEN_ALLIANCE, ]; $hordeRaces = [ @@ -81,20 +83,24 @@ public static function getFactionByRace(int $race): ?string WoWConstants::RACE_UNDEAD, WoWConstants::RACE_TAUREN, WoWConstants::RACE_TROLL, - WoWConstants::RACE_BLOODELF, WoWConstants::RACE_GOBLIN, - WoWConstants::RACE_MAGHAR_ORC, + WoWConstants::RACE_BLOODELF, + WoWConstants::RACE_PANDAREN_HORDE, + WoWConstants::RACE_NIGHTBORNE, WoWConstants::RACE_HIGHMOUNTAIN_TAUREN, - WoWConstants::RACE_DARK_IRON_DWARF, - WoWConstants::RACE_PANDAREN, + WoWConstants::RACE_ZANDALARI_TROLL, + WoWConstants::RACE_VULPERA, + WoWConstants::RACE_MAGHAR_ORC, + WoWConstants::RACE_DRACTHYR_HORDE, + WoWConstants::RACE_EARTHEN_HORDE, ]; if (in_array($race, $allianceRaces, true)) { - return 'Alliance'; + return 'alliance'; } if (in_array($race, $hordeRaces, true)) { - return 'Horde'; + return 'horde'; } return null; diff --git a/app/Helpers/SettingsHelper.php b/app/Helpers/SettingsHelper.php new file mode 100644 index 0000000..917879b --- /dev/null +++ b/app/Helpers/SettingsHelper.php @@ -0,0 +1,214 @@ + 0 ? floor(log($bytes, 1024)) : 0; + $pow = min($pow, count($units) - 1); + + return round($bytes / (1024 ** $pow), $precision) . ' ' . $units[$pow]; + } +} + +if (!function_exists('settings')) { + /** + * Get a setting value or all settings. + * + * @param string|null $key + * @param mixed $default + * @return mixed + */ + function settings($key = null, $default = null) + { + $cachedSettings = Cache::get('site_settings'); + + if ($cachedSettings instanceof \Illuminate\Support\Collection) { + $settings = $cachedSettings; + } elseif (is_array($cachedSettings)) { + $settings = collect($cachedSettings); + } else { + $settings = collect([]); + + try { + // Avoid caching an empty fallback forever when DB/table is temporarily unavailable. + if (\Illuminate\Support\Facades\Schema::hasTable('settings')) { + $settings = Setting::query()->pluck('value', 'key'); + Cache::forever('site_settings', $settings); + } + } catch (\Throwable $e) { + // Return in-memory fallback; next request can try rebuilding cache again. + $settings = collect([]); + } + } + + if (is_null($key)) { + return $settings; + } + + return $settings->get($key, $default); + } +} + +if (!function_exists('menu_defaults')) { + function menu_defaults(): array + { + return [ + 'web' => [ + ['label' => 'HOME', 'route' => 'home', 'url' => '', 'icon' => '', 'module' => '', 'auth' => 'any', 'permission' => '', 'enabled' => true], + ['label' => 'NEWS', 'route' => 'news', 'url' => '', 'icon' => '', 'module' => '', 'auth' => 'any', 'permission' => '', 'enabled' => true], + ['label' => 'HOW TO PLAY', 'route' => 'howtoplay', 'url' => '', 'icon' => '', 'module' => '', 'auth' => 'any', 'permission' => '', 'enabled' => true], + ['label' => 'ARMORY', 'route' => 'armory', 'url' => '', 'icon' => '', 'module' => 'Armory', 'auth' => 'any', 'permission' => '', 'enabled' => true], + ['label' => 'DONATE', 'route' => 'donate', 'url' => '', 'icon' => '', 'module' => 'Donate', 'auth' => 'any', 'permission' => '', 'enabled' => true], + ], + 'ucp' => [ + ['label' => 'Dashboard', 'route' => 'ucp.dashboard', 'url' => '', 'icon' => 'fas fa-home w-5', 'module' => '', 'auth' => 'auth', 'permission' => '', 'enabled' => true], + ['label' => 'Game Account', 'route' => 'ucp.gameaccount', 'url' => '', 'icon' => 'fas fa-gamepad w-5', 'module' => '', 'auth' => 'auth', 'permission' => '', 'enabled' => true], + ['label' => 'Donations', 'route' => 'ucp.transaction', 'url' => '', 'icon' => 'fas fa-hand-holding-usd w-5', 'module' => 'Donate', 'auth' => 'auth', 'permission' => '', 'enabled' => true], + ], + ]; + } +} + +if (!function_exists('menu_module_states')) { + function menu_module_states(): array + { + static $states = null; + + if (is_array($states)) { + return $states; + } + + $states = []; + + foreach (ModuleRegistryService::getAllModules() as $module) { + $moduleName = trim((string) ($module['folder'] ?? '')); + if ($moduleName === '') { + continue; + } + + $states[$moduleName] = (bool) ($module['enabled'] ?? true); + } + + return $states; + } +} + +if (!function_exists('menu_module_enabled')) { + function menu_module_enabled(string $module): bool + { + $module = trim($module); + if ($module === '') { + return true; + } + + $states = menu_module_states(); + + return array_key_exists($module, $states) && $states[$module] === true; + } +} + +if (!function_exists('menu_config')) { + function menu_config(string $menu): array + { + $defaults = menu_defaults(); + $fallback = $defaults[$menu] ?? []; + $value = settings("menu.{$menu}"); + + if (!is_string($value) || trim($value) === '') { + return $fallback; + } + + $decoded = json_decode($value, true); + + return is_array($decoded) ? $decoded : $fallback; + } +} + +if (!function_exists('menu_items')) { + function menu_items(string $menu, int $maxDepth = 1): array + { + $items = menu_config($menu); + $user = auth()->user(); + + return menu_items_recursive($items, $user, $maxDepth); + } +} + +if (!function_exists('menu_items_recursive')) { + function menu_items_recursive(array $items, $user, int $maxDepth = 1, int $depth = 0): array + { + $filtered = []; + + foreach ($items as $item) { + if (!is_array($item)) { + continue; + } + + if (!(bool) ($item['enabled'] ?? true)) { + continue; + } + + $authRule = $item['auth'] ?? 'any'; + if ($authRule === 'auth' && !$user) { + continue; + } + + if ($authRule === 'guest' && $user) { + continue; + } + + $permission = trim((string) ($item['permission'] ?? '')); + if ($permission !== '' && (!$user || !$user->can($permission))) { + continue; + } + + $module = trim((string) ($item['module'] ?? '')); + if (!menu_module_enabled($module)) { + continue; + } + + $routeName = trim((string) ($item['route'] ?? '')); + $url = trim((string) ($item['url'] ?? '')); + + if ($routeName !== '' && !Route::has($routeName)) { + continue; + } + + if ($routeName === '' && $url === '') { + continue; + } + + $children = $item['children'] ?? []; + $processedChildren = []; + + if ($depth < $maxDepth && !empty($children) && is_array($children)) { + $processedChildren = menu_items_recursive($children, $user, $maxDepth, $depth + 1); + } + + $item['children'] = $processedChildren; + $filtered[] = $item; + } + + return $filtered; + } +} + +if (!function_exists('menu_item_href')) { + function menu_item_href(array $item): string + { + $routeName = trim((string) ($item['route'] ?? '')); + if ($routeName !== '' && Route::has($routeName)) { + return route($routeName); + } + + $url = trim((string) ($item['url'] ?? '')); + return $url !== '' ? $url : '#'; + } +} diff --git a/app/Http/Controllers/Frontend/ArmoryController.php b/app/Http/Controllers/Frontend/ArmoryController.php deleted file mode 100644 index ec86763..0000000 --- a/app/Http/Controllers/Frontend/ArmoryController.php +++ /dev/null @@ -1,84 +0,0 @@ - 'armory.index', - 'show' => 'armory.show', - ]; - - protected ArmoryRepositoryInterface $armoryRepo; - protected WowheadParserService $wowheadParser; - protected ArmoryService $armoryService; - - public function __construct( - ArmoryRepositoryInterface $armoryRepo, - WowheadParserService $wowheadParser, - ArmoryService $armoryService - ) { - $this->armoryRepo = $armoryRepo; - $this->wowheadParser = $wowheadParser; - $this->armoryService = $armoryService; - } - - /** - * Display a paginated list of Armory characters - */ - public function index(Request $request) - { - $q = $request->input('q'); - $faction = $request->input('faction') ?: null; - $realm = $request->input('realm') ?: 1; // Default to realm 1 if not specified - $class = $request->input('class') ?: null; - $minLevel = $request->input('min_level') ?: null; - - // Pass realm to the repository through the request - $request->merge(['realm' => $realm]); - - $characters = ($q || $faction || $class || $minLevel) - ? $this->armoryService->searchCharacters($q, $faction, $class, $minLevel) - : collect(); - - return view($this->views['index'], [ - 'data' => $characters, - 'search' => $q ?? '', - 'realm' => $realm, - ]); - } - - /** - * Show a single character by GUID - */ - public function show(int $guid, Request $request, ?int $realm = null) - { - // Get realm from URL parameter or query string, default to 1 - $realm = $realm ?: $request->input('realm', 1); - - // Pass realm to the repository through the request - $request->merge(['realm' => $realm]); - - $profile = $this->armoryService->getCharacterProfile($guid); - - abort_if(empty($profile), 404); - - return view($this->views['show'], array_merge($profile, ['realm' => $realm])); - } -} diff --git a/app/Http/Controllers/Frontend/CommentController.php b/app/Http/Controllers/Frontend/CommentController.php index 50e62d1..a5cd8c9 100644 --- a/app/Http/Controllers/Frontend/CommentController.php +++ b/app/Http/Controllers/Frontend/CommentController.php @@ -7,9 +7,11 @@ use App\Models\News; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; +use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class CommentController extends Controller { + use AuthorizesRequests; /** * Store a newly created comment. * @@ -20,14 +22,14 @@ class CommentController extends Controller public function store(Request $request, $slug) { $request->validate([ - 'body' => 'required|string', + 'body' => 'required|string|max:10000', ]); $news = News::where('slug', $slug)->firstOrFail(); $comment = new Comment(); $comment->comment = $request->body; - $comment->user_id = Auth::id() ?? null; + $comment->user_id = Auth::id(); $comment->commentable_id = $news->id; $comment->commentable_type = News::class; $comment->save(); @@ -37,19 +39,12 @@ public function store(Request $request, $slug) /** * Remove the specified comment. - * - * @param int $id - * @return \Illuminate\Http\Response */ - public function destroy($id) + public function destroy(Comment $comment) { - $comment = Comment::findOrFail($id); - - if (Auth::id() == $comment->user_id || (Auth::user() && Auth::user()->hasRole('Admin'))) { - $comment->delete(); - return redirect()->back()->with('success', 'Comment deleted successfully!'); - } - - return redirect()->back()->with('error', 'You are not authorized to delete this comment.'); + $this->authorize('delete', $comment); + + $comment->delete(); + return redirect()->back()->with('success', 'Comment deleted successfully!'); } } \ No newline at end of file diff --git a/app/Http/Controllers/Frontend/ForumsController.php b/app/Http/Controllers/Frontend/ForumsController.php deleted file mode 100755 index 0079d8a..0000000 --- a/app/Http/Controllers/Frontend/ForumsController.php +++ /dev/null @@ -1,129 +0,0 @@ - 'forums.index', - 'forum' => 'forums.forum', - 'thread' => 'forums.thread', - 'create_thread' => 'forums.create_thread', - 'create_post' => 'forums.create_post', - ]; - - public function __construct(ForumService $forumService) - { - $this->forumService = $forumService; - } - - /** - * Display the forum index with all categories. - */ - public function index(Request $request, ?string $view = null): View - { - $categories = $this->forumService->getCategories(); - - return $this->renderView($view ?? $this->views['index'], compact('categories')); - } - - /** - * Display a forum with its threads. - */ - public function showForum(string $slug, ?string $view = null): View - { - $data = $this->forumService->getForumWithThreads($slug); - - return $this->renderView($view ?? $this->views['forum'], $data); - } - - /** - * Display a thread with its posts. - */ - public function showThread(string $forumSlug, string $threadSlug, ?string $view = null): View - { - $data = $this->forumService->getThreadWithPosts($forumSlug, $threadSlug); - - return $this->renderView($view ?? $this->views['thread'], $data); - } - - /** - * Show the form for creating a new thread. - */ - public function createThread(string $slug, ?string $view = null): View - { - $forum = Forum::where('slug', $slug)->firstOrFail(); - - return $this->renderView($view ?? $this->views['create_thread'], compact('forum')); - } - - /** - * Store a newly created thread. - */ - public function storeThread(Request $request, string $slug) - { - $forum = Forum::where('slug', $slug)->firstOrFail(); - - $validated = $request->validate([ - 'title' => 'required|min:3|max:255', - 'content' => 'required|min:10', - ]); - - $threadSlug = $this->forumService->createThread($forum, $validated); - - return redirect()->route('forums.thread', [ - 'forumSlug' => $forum->slug, - 'threadSlug' => $threadSlug, - ])->with('success', 'Thread created successfully!'); - } - - /** - * Store a newly created post (reply). - */ - public function storePost(Request $request, string $forumSlug, string $threadSlug) - { - $forum = Forum::where('slug', $forumSlug)->firstOrFail(); - $thread = Thread::where('slug', $threadSlug) - ->where('forum_id', $forum->id) - ->firstOrFail(); - - $validated = $request->validate([ - 'content' => 'required|min:10', - ]); - - try { - $this->forumService->createPost($thread, $validated); - } catch (\Exception $e) { - return back()->with('error', $e->getMessage()); - } - - return redirect()->route('forums.thread', [ - 'forumSlug' => $forumSlug, - 'threadSlug' => $threadSlug, - ])->with('success', 'Reply posted successfully!'); - } - - /** - * Render a Blade view safely. - * - * This replaces the renderView() inherited from BaseController. - */ - protected function renderView(string $view, array $data = []): View - { - if (!ViewFacade::exists($view)) { - abort(404, "View [{$view}] not found."); - } - - return view($view, $data); - } -} diff --git a/app/Http/Controllers/Frontend/HomeController.php b/app/Http/Controllers/Frontend/HomeController.php index 4c43fc6..3fec9d3 100644 --- a/app/Http/Controllers/Frontend/HomeController.php +++ b/app/Http/Controllers/Frontend/HomeController.php @@ -6,6 +6,7 @@ use App\Helpers\RealmHelper; use Illuminate\Http\Request; use Illuminate\Support\Facades\View; +use App\Libraries\Redis\RedisLibrary; use App\Models\News; /** @@ -36,7 +37,7 @@ class HomeController extends Controller * * @var int */ - protected $perPage = 2; + protected $perPage = 5; /** * Display the homepage. @@ -48,17 +49,34 @@ class HomeController extends Controller * @param string|null $view * @return \Illuminate\Contracts\View\View */ - public function index(Request $request, ?string $view = null) + public function index(Request $request, \App\Libraries\Redis\RedisLibrary $redis, ?string $view = null) { $realms = RealmHelper::all(); $perPage = $request->get('per_page', $this->perPage); - - $allNews = \App\Models\News::query() + $page = (int) ($request->get('page', 1)); + + // Single cache key for consistent home payload + $cacheKey = "home:news:page={$page}:perpage={$perPage}"; + $cached = $redis->get($cacheKey); + + if ($cached && is_array($cached) && isset($cached['news'], $cached['featured'])) { + $news = $cached['news']; + $featuredNews = $cached['featured']; + } else { + $allNews = \App\Models\News::query() + ->where('is_published', true) ->orderBy('created_at', 'desc') ->paginate($perPage); - $featuredNews = $allNews->shift(); - $news = $allNews; + $featuredNews = $allNews->shift(); + $news = $allNews; + + // Cache the unified payload + $redis->set($cacheKey, [ + 'news' => $news, + 'featured' => $featuredNews, + ], 60); + } $data = [ 'realms' => $realms, diff --git a/app/Http/Controllers/Frontend/InstallController.php b/app/Http/Controllers/Frontend/InstallController.php index e28a5f6..05a055a 100644 --- a/app/Http/Controllers/Frontend/InstallController.php +++ b/app/Http/Controllers/Frontend/InstallController.php @@ -2,18 +2,30 @@ namespace App\Http\Controllers\Frontend; +use App\Enums\Emulator; +use App\Enums\WoWConstants; use Illuminate\Http\Request; -use Illuminate\Support\Facades\Artisan; use App\Http\Controllers\Controller; use App\Services\InstallService; -use Illuminate\Support\Facades\DB; use Exception; +use Illuminate\Validation\Rule; +use PDO; class InstallController extends Controller { public function index() { - return view('install.index'); + $requirements = $this->systemRequirements(); + + return view('install.index', [ + 'expansions' => WoWConstants::EXPANSION_NAMES, + 'emulators' => Emulator::LABELS, + 'emulatorUrns' => Emulator::URN, + 'defaultExpansion' => WoWConstants::EXPANSION_CATA, + 'defaultEmulator' => Emulator::TRINITYCORE->value, + 'requirements' => $requirements, + 'allRequirementsPassed' => collect($requirements)->every(fn (array $requirement): bool => (bool) ($requirement['ok'] ?? false)), + ]); } public function success() @@ -23,41 +35,203 @@ public function success() public function testDb(Request $request) { + $payload = $request->validate([ + 'db_host' => ['required', 'string', 'max:255'], + 'db_port' => ['required', 'integer', 'between:1,65535'], + 'db_name' => ['required', 'string', 'max:255'], + 'db_username' => ['required', 'string', 'max:255'], + 'db_password' => ['nullable', 'string'], + ]); + try { - $connection = new \PDO( - "mysql:host={$request->db_host};port={$request->db_port};dbname={$request->db_name}", - $request->db_username, - $request->db_password + new PDO( + "mysql:host={$payload['db_host']};port={$payload['db_port']};dbname={$payload['db_name']}", + $payload['db_username'], + $payload['db_password'] ?? '' ); + return response()->json(['success' => true, 'message' => '✅ Conexión exitosa']); } catch (Exception $e) { - return response()->json(['success' => false, 'message' => '❌ Error: ' . $e->getMessage()]); + \Illuminate\Support\Facades\Log::warning('Install DB test failed', [ + 'host' => $payload['db_host'], + 'port' => $payload['db_port'], + 'database' => $payload['db_name'], + 'error' => $e->getMessage(), + ]); + + return response()->json(['success' => false, 'message' => '❌ No se pudo conectar a la base de datos. Verifique las credenciales e intente de nuevo.']); } } public function install(Request $request) { + $requirements = $this->systemRequirements(); + $hasFailedRequirement = collect($requirements)->contains(fn (array $requirement): bool => !(bool) ($requirement['ok'] ?? false)); + + if ($hasFailedRequirement) { + return back() + ->withInput() + ->withErrors(['requirements' => 'No se puede instalar hasta cumplir todos los requisitos del sistema.']); + } + + $validated = $request->validate($this->validationRules()); $service = app(InstallService::class); - $service->run([ - 'db_connection' => 'mysql', - 'db_host' => $request->db_host, - 'db_port' => $request->db_port, - 'db_name' => $request->db_name, - 'db_username' => $request->db_username, - 'db_password' => $request->db_password, - 'app_name' => $request->app_name, - 'app_url' => $request->app_url, - 'locale' => $request->locale, - 'use_redis' => $request->use_redis ?? false, - 'admin_name' => $request->admin_name, - 'admin_email' => $request->admin_email, - 'admin_password' => $request->admin_password, - ]); + try { + $service->run($validated); + } catch (\Throwable $exception) { + \Illuminate\Support\Facades\Log::error('Installation failed', [ + 'error' => $exception->getMessage(), + 'trace' => $exception->getTraceAsString(), + ]); + + return back() + ->withInput() + ->withErrors(['install' => 'No se pudo completar la instalación. Revise los logs del servidor para más detalles.']); + } - // lock de instalación - file_put_contents(storage_path('installed.lock'), now()); + $lockContent = now()->toDateTimeString(); - return view('install.success'); + $installerLockWritten = file_put_contents(storage_path('installer.lock'), $lockContent, LOCK_EX); + $legacyLockWritten = file_put_contents(storage_path('installed.lock'), $lockContent, LOCK_EX); + + if ($installerLockWritten === false && $legacyLockWritten === false) { + throw new \RuntimeException('Unable to create installation lock file.'); + } + + return redirect() + ->route('install.success') + ->with('install_completed', true) + ->with('install_success_message', 'Instalacion completada correctamente.'); + } + + /** + * Get the system requirements for the installation. + * + * @return array + */ + private function systemRequirements(): array + { + $phpMin = '8.2.0'; + + return [ + [ + 'label' => "PHP >= {$phpMin}", + 'ok' => version_compare(PHP_VERSION, $phpMin, '>='), + 'current' => PHP_VERSION, + ], + [ + 'label' => 'Extension PDO', + 'ok' => extension_loaded('pdo'), + 'current' => extension_loaded('pdo') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension pdo_mysql', + 'ok' => extension_loaded('pdo_mysql'), + 'current' => extension_loaded('pdo_mysql') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension mbstring', + 'ok' => extension_loaded('mbstring'), + 'current' => extension_loaded('mbstring') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension openssl', + 'ok' => extension_loaded('openssl'), + 'current' => extension_loaded('openssl') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension tokenizer', + 'ok' => extension_loaded('tokenizer'), + 'current' => extension_loaded('tokenizer') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension xml', + 'ok' => extension_loaded('xml'), + 'current' => extension_loaded('xml') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension ctype', + 'ok' => extension_loaded('ctype'), + 'current' => extension_loaded('ctype') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension json', + 'ok' => extension_loaded('json'), + 'current' => extension_loaded('json') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Extension fileinfo', + 'ok' => extension_loaded('fileinfo'), + 'current' => extension_loaded('fileinfo') ? 'OK' : 'Missing', + ], + [ + 'label' => 'Storage writable', + 'ok' => is_writable(storage_path()), + 'current' => is_writable(storage_path()) ? 'Writable' : 'Not writable', + ], + [ + 'label' => 'Bootstrap/cache writable', + 'ok' => is_writable(base_path('bootstrap/cache')), + 'current' => is_writable(base_path('bootstrap/cache')) ? 'Writable' : 'Not writable', + ], + ]; + } + + private function validationRules(): array + { + return [ + 'agree_eula' => ['accepted'], + 'app_name' => ['required', 'string', 'max:100'], + 'app_url' => ['required', 'url', 'max:255'], + 'locale' => ['required', 'string', 'max:10'], + + 'db_host' => ['required', 'string', 'max:255'], + 'db_port' => ['required', 'integer', 'between:1,65535'], + 'db_name' => ['required', 'string', 'max:255'], + 'db_username' => ['required', 'string', 'max:255'], + 'db_password' => ['nullable', 'string', 'max:255'], + + 'admin_name' => ['required', 'string', 'max:120'], + 'admin_email' => ['required', 'email', 'max:255'], + 'admin_password' => ['required', 'string', 'min:8', 'confirmed'], + + 'realm_name' => ['required', 'string', 'max:120'], + 'realm_hostname' => ['required', 'string', 'max:255'], + 'realm_port' => ['required', 'integer', 'between:1,65535'], + 'realm_expansion' => ['required', 'integer', Rule::in(array_keys(WoWConstants::EXPANSION_NAMES))], + 'realm_emulator' => ['required', 'string', Rule::in(array_keys(Emulator::LABELS))], + 'realm_bnet' => ['nullable', 'boolean'], + + 'realm_console_hostname' => ['required', 'string', 'max:255'], + 'realm_console_port' => ['nullable', 'integer', 'between:1,65535'], + 'realm_console_username' => ['required', 'string', 'max:255'], + 'realm_console_password' => ['required', 'string', 'max:255'], + 'realm_console_urn' => ['required', 'string', Rule::in(array_values(Emulator::URN))], + + 'realm_auth.host' => ['required', 'string', 'max:255'], + 'realm_auth.port' => ['nullable', 'integer', 'between:1,65535'], + 'realm_auth.database' => ['required', 'string', 'max:255'], + 'realm_auth.username' => ['required', 'string', 'max:255'], + 'realm_auth.password' => ['required', 'string', 'max:255'], + 'realm_auth.charset' => ['nullable', 'string', 'max:64'], + 'realm_auth.collation' => ['nullable', 'string', 'max:64'], + + 'realm_characters.host' => ['required', 'string', 'max:255'], + 'realm_characters.port' => ['nullable', 'integer', 'between:1,65535'], + 'realm_characters.database' => ['required', 'string', 'max:255'], + 'realm_characters.username' => ['required', 'string', 'max:255'], + 'realm_characters.password' => ['required', 'string', 'max:255'], + 'realm_characters.charset' => ['nullable', 'string', 'max:64'], + 'realm_characters.collation' => ['nullable', 'string', 'max:64'], + + 'realm_world.host' => ['required', 'string', 'max:255'], + 'realm_world.port' => ['nullable', 'integer', 'between:1,65535'], + 'realm_world.database' => ['required', 'string', 'max:255'], + 'realm_world.username' => ['required', 'string', 'max:255'], + 'realm_world.password' => ['required', 'string', 'max:255'], + 'realm_world.charset' => ['nullable', 'string', 'max:64'], + 'realm_world.collation' => ['nullable', 'string', 'max:64'], + ]; } } diff --git a/app/Http/Controllers/Frontend/NewsController.php b/app/Http/Controllers/Frontend/NewsController.php index dd73fe7..ff26537 100755 --- a/app/Http/Controllers/Frontend/NewsController.php +++ b/app/Http/Controllers/Frontend/NewsController.php @@ -6,72 +6,115 @@ use App\Models\News; use App\Helpers\GeneralHelper; use App\Models\NewsCategory; +use App\Services\LocalizationService; use Illuminate\Http\Request; +use Illuminate\Contracts\View\View; + /** - * Frontend Home Controller for handling main website pages + * Frontend News Controller – supports optional multilingual content. */ class NewsController extends Controller { - /** - * Model name - * - * @var string - */ - protected $model = 'news'; - - /** - * Is paginated - * - * @var boolean - */ - protected $isPaginated = true; - - /** - * Per page - */ protected $perPage = 5; - /** - * Default view for the controller - * - * @var string - */ protected $views = [ 'index' => 'news.index', - 'show' => 'news.show', + 'show' => 'news.show', ]; - public function index(Request $request) + /** + * Display a listing of published news articles with optional category filtering. + */ + public function index(Request $request): View { + $locale = $this->resolveLocale($request); $category = $request->get('category', 'all'); + $query = News::where('is_published', true)->orderBy('created_at', 'desc'); - if ($category != 'all') { + if ($category !== 'all') { $query->where('category_id', $category); } - $items = (new News)->getCachedList($query, $this->perPage); + + $items = (new News)->getCachedList($query, $this->perPage); $recentNews = (new News)->recentNews(); - $category = (new NewsCategory)->getAllCategoriesWithCount(); + $category = (new NewsCategory)->getAllCategoriesWithCount(); + + $items->each(function ($item) use ($locale) { + $item->display_title = $item->translatedTitle($locale); + $item->display_content = $item->translatedContent($locale); + $item->display_excerpt = $item->excerpt ?: \Illuminate\Support\Str::limit(strip_tags($item->display_content), 220); + $item->reading_time = GeneralHelper::readingTime($item->display_content); + }); - $items->each(function ($item) { - $item->reading_time = GeneralHelper::readingTime($item->content); + $recentNews->each(function ($item) use ($locale) { + $item->display_title = $item->translatedTitle($locale); }); - return view($this->views['index'], ['data' => $items, 'recentNews' => $recentNews, 'category' => $category]); + return view($this->views['index'], [ + 'data' => $items, + 'recentNews' => $recentNews, + 'category' => $category, + 'activeLocale' => $locale, + 'activeLocales' => LocalizationService::getActiveLocales(), + 'isMultilingual'=> LocalizationService::isMultilingualEnabled(), + ]); } - public function show(string $slug, ?string $view = null) + /** + * Display a single news article by slug. + */ + public function show(Request $request, string $slug): View { - $item = (new News)->getCachedByField('slug', $slug); + $locale = $this->resolveLocale($request); + $item = (new News)->getCachedByField('slug', $slug); + if (!$item) abort(404); - $item->load(['comments' => function ($query) { + $item->load(['author', 'comments' => function ($query) { $query->where('is_active', true) ->with('user') ->orderBy('created_at', 'desc'); }]); - $item->reading_time = GeneralHelper::readingTime($item->content); + $item->display_title = $item->translatedTitle($locale); + $item->display_content = $item->translatedContent($locale); + $item->display_excerpt = $item->excerpt ?: \Illuminate\Support\Str::limit(strip_tags($item->display_content), 300); + $item->reading_time = GeneralHelper::readingTime($item->display_content); + + return view($this->views['show'], [ + 'item' => $item, + 'activeLocale' => $locale, + 'activeLocales' => LocalizationService::getActiveLocales(), + 'isMultilingual'=> LocalizationService::isMultilingualEnabled(), + ]); + } + + /** + * Resolve locale from: query param → session → default locale. + * Persists chosen locale in session. + */ + private function resolveLocale(Request $request): string + { + $available = LocalizationService::getActiveLocales(); + $defaultLocale = LocalizationService::getDefaultLocale(); + + if (!LocalizationService::isMultilingualEnabled()) { + return $defaultLocale; + } + + // Accept locale switch via ?lang=xx + if ($request->has('lang') && in_array($request->input('lang'), $available)) { + $locale = $request->input('lang'); + session(['news_locale' => $locale]); + return $locale; + } + + $sessionLocale = session('news_locale'); + if ($sessionLocale && in_array($sessionLocale, $available)) { + return $sessionLocale; + } - return view($this->views['show'], ['item' => $item]); + return $defaultLocale; } } + diff --git a/app/Http/Controllers/Frontend/Users/UserController.php b/app/Http/Controllers/Frontend/Users/UserController.php index 34eb3ef..65a3173 100755 --- a/app/Http/Controllers/Frontend/Users/UserController.php +++ b/app/Http/Controllers/Frontend/Users/UserController.php @@ -6,12 +6,14 @@ use Illuminate\Http\Request; use Illuminate\Contracts\Auth\Factory as AuthFactory; use Illuminate\Contracts\Hashing\Hasher as HasherContract; +use Illuminate\Support\Facades\Log; use App\Exceptions\UserNotFoundException; use App\Helpers\RealmHelper; use App\Libraries\Auth\AccountLibrary; use App\Models\AccountLinked; use App\Models\Realm; use App\Traits\ConnectsToExternalDatabase; +use Modules\Donate\Domain\Models\DonationTransaction; /** * User Controller for handling user-related actions in the frontend @@ -30,6 +32,7 @@ class UserController extends Controller 'create' => 'ucp.createAccount', 'gameAccount' => 'ucp.gameAccount', 'manage' => 'ucp.manageAccount', + 'transaction' => 'ucp.donations', ]; /** @@ -68,13 +71,32 @@ public function show() throw new UserNotFoundException('User not found', 404); } - // TODO: Remove this line when you have a real implementation - // at the moment we are just returning a dummy user - $user->coins = 0; - return view($this->views['index'], compact('user')); } + /** + * Show transaction page + * + * @throws UserNotFoundException + * @return \Illuminate\View\View + */ + public function transaction() + { + $user = $this->auth->guard()->user(); + + if (!$user) { + throw new UserNotFoundException('User not found', 404); + } + + $transactions = DonationTransaction::where('user_id', $user->id)->get(); + + if ($transactions->isEmpty()) { + $transactions = []; + } + + return view($this->views['transaction'], compact('user', 'transactions')); + } + /** * Show create account form * @@ -105,12 +127,13 @@ public function createAction() public function manage() { $user = $this->auth->guard()->user(); - $linkedAccount = AccountLinked::where('user_id', $user->id)->first(); if (!$user) { throw new UserNotFoundException('User not found', 404); } + $linkedAccount = AccountLinked::where('user_id', $user->id)->first(); + return view($this->views['manage'], [ 'user' => $user, 'account' => $linkedAccount ?? [], @@ -136,7 +159,7 @@ public function gameAccount() return view($this->views['gameAccount'], [ 'user' => $user, 'gameAccounts' => $gameAccounts, - 'realm' => Realm::all(), + 'realm' => Realm::query()->select(['id', 'name'])->get(), ]); } @@ -148,13 +171,22 @@ public function gameAccount() */ private function getUserGameAccounts($user) { - $gameLinked = AccountLinked::where('user_id', $user->id)->get(); + $gameLinked = AccountLinked::query() + ->with('realm') + ->where('user_id', $user->id) + ->get(); $account = []; $connectionErrors = false; foreach ($gameLinked as $game) { try { - $realm = Realm::findOrFail($game->realm_id); + $realm = $game->realm; + + if (!$realm) { + $connectionErrors = true; + continue; + } + $external = $this->connectToExternalDatabase( json_decode($realm->auth_database, true) ); @@ -175,9 +207,11 @@ private function getUserGameAccounts($user) $characters = []; try { - if (!empty($realm->characters_database)) { + $charactersDatabaseConfig = $realm->character_database ?? $realm->characters_database; + + if (!empty($charactersDatabaseConfig)) { $charactersDb = $this->connectToExternalDatabase( - json_decode($realm->characters_database, true), + json_decode($charactersDatabaseConfig, true), 'characters' ); @@ -260,7 +294,7 @@ public function createGameAccount(Request $request) // Generate password using WoWCrypto $username = strtoupper($request->username); $email = strtoupper($request->email); - $password = strtoupper($request->password); + $password = $request->password; try { // Obtain realm configuration @@ -341,9 +375,15 @@ public function createGameAccount(Request $request) ->with('success', 'Cuenta de juego creada y vinculada exitosamente.'); } catch (\Exception $e) { + Log::error('Game account creation failed', [ + 'user_id' => $request->user()?->id, + 'realm_id' => $request->realm, + 'error' => $e->getMessage(), + ]); + return redirect()->back() ->withInput() - ->with('error', 'Error al crear la cuenta de juego: ' . $e->getMessage()); + ->with('error', 'Error al crear la cuenta de juego. Por favor, inténtalo de nuevo más tarde.'); } } } diff --git a/app/Http/Middleware/CheckMaintenanceMode.php b/app/Http/Middleware/CheckMaintenanceMode.php new file mode 100644 index 0000000..f896417 --- /dev/null +++ b/app/Http/Middleware/CheckMaintenanceMode.php @@ -0,0 +1,44 @@ +is('acp') || $request->is('acp/*')) { + return $next($request); + } + + // Skip auth login routes and check role admin + if ($request->is('auth/login') || $request->user()?->hasRole('admin')) { + return $next($request); + } + + // Fixed prevent not logout when maintenance mode is enabled + if ($request->is('auth/logout')) { + return $next($request); + } + + // Return 503 Service Unavailable with maintenance view + return response()->view('errors.maintenance', [ + 'message' => settings('maintenance_message', 'We are currently performing scheduled maintenance. We will be back shortly.'), + 'title' => settings('site_name', 'NexusCMS') . ' - Maintenance' + ], 503); + } +} diff --git a/app/Http/Middleware/EnsureInstallerIsAvailable.php b/app/Http/Middleware/EnsureInstallerIsAvailable.php new file mode 100644 index 0000000..7dc1b29 --- /dev/null +++ b/app/Http/Middleware/EnsureInstallerIsAvailable.php @@ -0,0 +1,25 @@ +routeIs('install.success') && $request->session()->has('install_completed')) { + return $next($request); + } + + return redirect()->route('home'); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/Permission.php b/app/Http/Middleware/Permission.php new file mode 100644 index 0000000..1117555 --- /dev/null +++ b/app/Http/Middleware/Permission.php @@ -0,0 +1,27 @@ +user(); + + if (!$user) { + return redirect()->route('login'); + } + + foreach ($permissions as $permission) { + if ($user->hasPermissionTo($permission)) { + return $next($request); + } + } + + abort(403, 'You don`t have permissions.'); + } +} \ No newline at end of file diff --git a/app/Http/Middleware/SecurityHeaders.php b/app/Http/Middleware/SecurityHeaders.php new file mode 100644 index 0000000..3621569 --- /dev/null +++ b/app/Http/Middleware/SecurityHeaders.php @@ -0,0 +1,285 @@ +attributes->get('csp_nonce')` so views can opt in + * to a stricter CSP later by writing + * ``. The nonce is + * **not** included in the CSP source list right now on purpose: + * per CSP spec, when a nonce is present, `'unsafe-inline'` is + * ignored — so until every inline script is migrated, the + * nonce would silently break the app. + * - `'unsafe-inline'` is currently allowed in script-src and + * style-src. It can be removed once every +@endpush +@endif diff --git a/app/Modules/Admin/Resources/views/generic-crud/fields/text.blade.php b/app/Modules/Admin/Resources/views/generic-crud/fields/text.blade.php new file mode 100644 index 0000000..a2cbb3a --- /dev/null +++ b/app/Modules/Admin/Resources/views/generic-crud/fields/text.blade.php @@ -0,0 +1,25 @@ +@php $value = old($field['name'], $record?->{$field['name']} ?? ($field['default'] ?? '')); @endphp +
+ + + @if(!empty($field['hint'])) +

{{ $field['hint'] }}

+ @endif + @error($field['name']) +

+ {{ $message }} +

+ @enderror +
diff --git a/app/Modules/Admin/Resources/views/generic-crud/fields/textarea.blade.php b/app/Modules/Admin/Resources/views/generic-crud/fields/textarea.blade.php new file mode 100644 index 0000000..6faf40e --- /dev/null +++ b/app/Modules/Admin/Resources/views/generic-crud/fields/textarea.blade.php @@ -0,0 +1,23 @@ +@php $value = old($field['name'], $record?->{$field['name']} ?? ($field['default'] ?? '')); @endphp +
+ + + @if(!empty($field['hint'])) +

{{ $field['hint'] }}

+ @endif + @error($field['name']) +

+ {{ $message }} +

+ @enderror +
diff --git a/app/Modules/Admin/Resources/views/generic-crud/fields/toggle.blade.php b/app/Modules/Admin/Resources/views/generic-crud/fields/toggle.blade.php new file mode 100644 index 0000000..c54e953 --- /dev/null +++ b/app/Modules/Admin/Resources/views/generic-crud/fields/toggle.blade.php @@ -0,0 +1,33 @@ +@php $checked = (bool) old($field['name'], $record?->{$field['name']} ?? ($field['default'] ?? false)); @endphp +
+ {{-- Toggle switch --}} + +
+ + @if(!empty($field['hint'])) +

{{ $field['hint'] }}

+ @endif + @error($field['name']) +

+ {{ $message }} +

+ @enderror +
+
diff --git a/app/Modules/Admin/Resources/views/generic-crud/fields/url.blade.php b/app/Modules/Admin/Resources/views/generic-crud/fields/url.blade.php new file mode 100644 index 0000000..a58006f --- /dev/null +++ b/app/Modules/Admin/Resources/views/generic-crud/fields/url.blade.php @@ -0,0 +1,25 @@ +@php $value = old($field['name'], $record?->{$field['name']} ?? ($field['default'] ?? '')); @endphp +
+ + + @if(!empty($field['hint'])) +

{{ $field['hint'] }}

+ @endif + @error($field['name']) +

+ {{ $message }} +

+ @enderror +
diff --git a/app/Modules/Admin/Resources/views/generic-crud/index.blade.php b/app/Modules/Admin/Resources/views/generic-crud/index.blade.php new file mode 100644 index 0000000..99d0430 --- /dev/null +++ b/app/Modules/Admin/Resources/views/generic-crud/index.blade.php @@ -0,0 +1,198 @@ +@extends('admin::layouts.app') + +@section('title', $config['title'] ?? 'Manage') + +@section('content') + +{{-- Page header --}} +
+
+

{{ $config['title'] ?? 'Manage' }}

+ @if(!empty($config['description'])) +

{{ $config['description'] }}

+ @endif +
+ + + New {{ \Illuminate\Support\Str::singular($config['title'] ?? 'Record') }} + +
+ +
+ + {{-- Flash messages --}} + @if(session('success')) +
+ + {{ session('success') }} +
+ @endif + @if(session('error')) +
+ + {{ session('error') }} +
+ @endif + + {{-- Table card --}} +
+ + {{-- Toolbar --}} +
+
+ {{ $records->total() }} + {{ \Illuminate\Support\Str::lower($config['title'] ?? 'records') }} + @if(request('search')) + — matching "{{ request('search') }}" + @endif +
+ + @php + $searchEnabled = !empty($config['list']['searchable']) + || !empty($config['list']['search_columns']); + @endphp + @if($searchEnabled) +
+
+ + + @if(request('search')) + + + + @endif +
+ +
+ @endif +
+ + {{-- Table --}} +
+ + + + @foreach($config['list']['columns'] as $col) + + @endforeach + + + + + @forelse($records as $record) + + @foreach($config['list']['columns'] as $col) + + @endforeach + + + @empty + + + + @endforelse + +
+ {{ $col['label'] ?? $col['field'] }} +
+ @php + $cellValue = $record->{$col['field']} ?? null; + $cellFormat = $col['format'] ?? null; + @endphp + @if($cellFormat === 'date' && $cellValue) + {{ \Carbon\Carbon::parse($cellValue)->format('M d, Y') }} + @elseif($cellFormat === 'datetime' && $cellValue) + {{ \Carbon\Carbon::parse($cellValue)->format('M d, Y · H:i') }} + @elseif($cellFormat === 'boolean') + @if($cellValue) + + Yes + + @else + + No + + @endif + @elseif($cellFormat === 'image' && $cellValue) + + @elseif($cellFormat === 'badge' && $cellValue) + {{ $cellValue }} + @elseif($cellFormat === 'truncate') + + {{ \Illuminate\Support\Str::limit($cellValue, 60) }} + + @else + + {{ $cellValue ?? '—' }} + + @endif + +
+ + + +
+ @csrf @method('DELETE') + +
+
+
+
+
+ +
+
+

No records found

+ @if(request('search')) +

+ Try a different search term or + clear the filter. +

+ @else +

+ Create the first record +

+ @endif +
+
+
+
+ + {{-- Pagination --}} + @if($records->hasPages()) +
+ + Showing {{ $records->firstItem() }}–{{ $records->lastItem() }} of {{ $records->total() }} + + {{ $records->links() }} +
+ @endif + +
+
+ +@endsection diff --git a/app/Modules/Admin/Resources/views/index.blade.php b/app/Modules/Admin/Resources/views/index.blade.php new file mode 100644 index 0000000..43b7286 --- /dev/null +++ b/app/Modules/Admin/Resources/views/index.blade.php @@ -0,0 +1,356 @@ +@extends('admin::layouts.app') + +@section('title', 'Admin Dashboard') + +@section('content') + +
+
+ +

Dashboard

+
+
+
+ + +
+ + + + +
+
+ + +
+ +
+ +
+
+
+ +
+ + 12% + +
+

Total Accounts

+

15,430

+
+ + +
+
+
+ +
+ + 8% + +
+

Online Players

+

1,250

+
+ + +
+
+
+ +
+ + 24% + +
+

Revenue (Month)

+

$8,420

+
+ + +
+
+
+ +
+ + Stable + +
+

Server Uptime

+

99.8%

+
+
+ + +
+ +
+ +
+
+

Quick Actions

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

Recent Activity

+ View All +
+
+
+
+
+ +
+
+

New Registration

+

PlayerName123 created an account

+

2 minutes ago

+
+
+
+
+ +
+
+

Store Purchase

+

Player purchased Level 80 Boost for $35

+

15 minutes ago

+
+
+
+
+ +
+
+

Ban Applied

+

Hacker99 banned for botting (permanent)

+

1 hour ago

+
+
+
+
+ +
+
+

News Published

+

New patch notes released by Admin

+

3 hours ago

+
+
+
+
+
+ + +
+
+

Realms Status

+
+
+
+
+
+
+
+

Realm 1 - FireStorm

+

Version 3.3.5a | 850 players

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

Realm 2 - Frostmourne

+

Version 3.3.5a | 320 players

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

Realm 3 - IceCrown

+

Version 3.3.5a | 80 players

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

+ + System Information +

+ @if($isDebug) + DEBUG ON + @endif +
+
+
+ @foreach($systemInfo as $item) +
+
+ +
+
+

{{ $item['label'] }}

+

+ {{ $item['value'] }} +

+
+
+ @endforeach +
+
+
+ + +
+
+

Pending Reports

+ 12 +
+
+
+
+
+

Cheating Report

+ High +
+

Player using speed hacks in BG

+

5 min ago

+
+
+
+

Harassment

+ Medium +
+

Toxic behavior in global chat

+

12 min ago

+
+
+
+

Bug Report

+ Low +
+

Quest NPC not responding

+

1 hour ago

+
+
+ +
+
+ + + +
+
+

Recent Donations

+
+
+
+
+
+

PlayerOne

+

Gold Package

+
+
+

$30

+

Just now

+
+
+
+
+

CoolGamer99

+

Silver Package

+
+
+

$15

+

10 min ago

+
+
+
+
+

EpicWarrior

+

Custom Amount

+
+
+

$50

+

30 min ago

+
+
+
+ +
+
+
+
+
+@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/layouts/app.blade.php b/app/Modules/Admin/Resources/views/layouts/app.blade.php new file mode 100644 index 0000000..8781428 --- /dev/null +++ b/app/Modules/Admin/Resources/views/layouts/app.blade.php @@ -0,0 +1,357 @@ + + + + + + + {{ config('app.name', 'NexusCMS') }} · @yield('title', 'Dashboard') + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + @yield('styles') + + + + +
+ + {{-- ─── Mobile overlay ─────────────────────────────────────────────── --}} + + + {{-- ─── Sidebar ─────────────────────────────────────────────────────── --}} + + + {{-- ─── Main area ───────────────────────────────────────────────────── --}} +
+ + {{-- Top bar (mobile) --}} +
+ + @yield('title', 'Dashboard') +
+ {{ substr(Auth::user()->name, 0, 1) }} +
+
+ + {{-- Page content --}} +
+ @yield('content') +
+ + {{-- Footer --}} +
+
+ + {{ config('app.name', 'NexusCMS') }} + · + {{ app(\App\Services\SystemInfoService::class)->getFullVersion() }} +
+
+ + + + | + © {{ date('Y') }} {{ config('app.name', 'NexusCMS') }} +
+
+ +
+
+ + + +@stack('scripts') + + diff --git a/app/Modules/Admin/Resources/views/logs/index.blade.php b/app/Modules/Admin/Resources/views/logs/index.blade.php new file mode 100644 index 0000000..1c44473 --- /dev/null +++ b/app/Modules/Admin/Resources/views/logs/index.blade.php @@ -0,0 +1,178 @@ +@extends('admin::layouts.app') + +@section('title', 'Logs') + +@section('content') +
+
+

System Logs

+
+
+
+ {{-- Log file selector --}} + + + {{-- Level filter --}} + + + {{-- Search --}} +
+ + +
+ + +
+
+
+ +
+ {{-- Stats --}} +
+
+
+ +
+
+

Log Files

+

{{ $logFiles->count() }}

+
+
+
+
+ +
+
+

Total Entries

+

{{ $total }}

+
+
+
+
+ +
+
+

Current File

+

{{ $selectedFile ?? 'None' }}

+
+
+
+
+ +
+
+

Active Filter

+

{{ $levelFilter ? ucfirst($levelFilter) : 'None' }}

+
+
+
+ + {{-- Log Entries --}} +
+
+

Log Entries

+ + Showing {{ $entries->count() }} of {{ $total }} entries + @if($total > $perPage) + (Page {{ $page }} of {{ ceil($total / $perPage) }}) + @endif + +
+
+
+ @forelse($entries as $entry) + @php + $levelColors = [ + 'emergency' => ['bg' => 'bg-red-100', 'text' => 'text-red-700', 'border' => 'border-red-500', 'badge' => 'bg-red-600'], + 'alert' => ['bg' => 'bg-red-50', 'text' => 'text-red-600', 'border' => 'border-red-400', 'badge' => 'bg-red-500'], + 'critical' => ['bg' => 'bg-red-50', 'text' => 'text-red-600', 'border' => 'border-red-400', 'badge' => 'bg-red-500'], + 'error' => ['bg' => 'bg-red-50', 'text' => 'text-red-600', 'border' => 'border-red-300', 'badge' => 'bg-red-400'], + 'warning' => ['bg' => 'bg-yellow-50', 'text' => 'text-yellow-700', 'border' => 'border-yellow-400', 'badge' => 'bg-yellow-500'], + 'notice' => ['bg' => 'bg-blue-50', 'text' => 'text-blue-600', 'border' => 'border-blue-300', 'badge' => 'bg-blue-400'], + 'info' => ['bg' => 'bg-blue-50', 'text' => 'text-blue-600', 'border' => 'border-blue-300', 'badge' => 'bg-blue-500'], + 'debug' => ['bg' => 'bg-gray-50', 'text' => 'text-gray-600', 'border' => 'border-gray-300', 'badge' => 'bg-gray-400'], + ]; + $colors = $levelColors[$entry['level']] ?? $levelColors['debug']; + + $lines = explode("\n", $entry['message']); + $firstLine = $lines[0]; + $stackTrace = count($lines) > 1 ? implode("\n", array_slice($lines, 1)) : null; + @endphp + +
+
+
+ + {{ $entry['level'] }} + + + {{ $entry['timestamp'] }} + +
+
+

{{ $firstLine }}

+ + @if($stackTrace) +
+ + Stack Trace + +
{{ $stackTrace }}
+
+ @endif +
+ @empty +
+
+ +
+

No log entries found

+

+ @if($levelFilter || $searchQuery) + Try adjusting your filters or search query. + @else + No log files available. + @endif +

+
+ @endforelse +
+ + {{-- Pagination --}} + @if($total > $perPage) +
+
+ Showing {{ (($page - 1) * $perPage) + 1 }} to {{ min($page * $perPage, $total) }} of {{ $total }} entries +
+
+ @if($page > 1) + + Previous + + @endif + @if($page < ceil($total / $perPage)) + + Next + + @endif +
+
+ @endif +
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/menus/index.blade.php b/app/Modules/Admin/Resources/views/menus/index.blade.php new file mode 100644 index 0000000..2248d08 --- /dev/null +++ b/app/Modules/Admin/Resources/views/menus/index.blade.php @@ -0,0 +1,546 @@ +@extends('admin::layouts.app') + +@section('title', 'Menu Manager') + +@section('content') +
+
+

Menu Manager

+

Drag items to reorder — click to edit — nest by dragging onto another item

+
+
+ + + +
+
+ +
+ @if(session('success')) +
+ +

{{ session('success') }}

+
+ @endif + + +
+@endsection + +@php +$allRoutesForPicker = []; +foreach (['public', 'auth', 'ucp'] as $cat) { + $allRoutesForPicker[$cat] = $availableRoutes[$cat] ?? []; +} +@endphp + +@push('scripts') + +@endpush diff --git a/app/Modules/Admin/Resources/views/menus/partials/item.blade.php b/app/Modules/Admin/Resources/views/menus/partials/item.blade.php new file mode 100644 index 0000000..7efb0ad --- /dev/null +++ b/app/Modules/Admin/Resources/views/menus/partials/item.blade.php @@ -0,0 +1,102 @@ +@php +$itemId = $item['id'] ?? "item_{$index}"; +$isChild = $item['_isChild'] ?? false; +$enabled = !empty($item['enabled']); +@endphp + + diff --git a/app/Modules/Admin/Resources/views/menus/partials/row.blade.php b/app/Modules/Admin/Resources/views/menus/partials/row.blade.php new file mode 100644 index 0000000..2890d12 --- /dev/null +++ b/app/Modules/Admin/Resources/views/menus/partials/row.blade.php @@ -0,0 +1,52 @@ + + + + + + @php + $selectedModule = $item['module'] ?? ''; + $moduleExists = $selectedModule === '' || array_key_exists($selectedModule, $modules); + $moduleEnabled = $selectedModule === '' || (($modules[$selectedModule] ?? false) === true); + @endphp +
+ + @if(!$moduleExists) +

Assigned module does not exist.

+ @elseif(!$moduleEnabled) +

Assigned module is disabled.

+ @endif +
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/Modules/Admin/Resources/views/modules/edit.blade.php b/app/Modules/Admin/Resources/views/modules/edit.blade.php new file mode 100644 index 0000000..2557547 --- /dev/null +++ b/app/Modules/Admin/Resources/views/modules/edit.blade.php @@ -0,0 +1,93 @@ +@extends('admin::layouts.app') + +@section('title', 'Configure Module') + +@section('content') +
+
+

Configure Module

+
+ + Back to Modules + +
+ +
+ @if(session('success')) +
+ +

{{ session('success') }}

+
+ @endif + + @if($errors->any()) +
+

Please fix the following errors:

+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+
+

{{ $module['name'] }} ({{ $module['folder'] }})

+ +
+ @csrf + @method('PUT') + +
+ + +
+ +
+ + +
+ +
+ +
+
+
+ +
+

Module Info

+
+
+
Folder
+
{{ $module['folder'] }}
+
+
+
Config file
+
{{ $module['config_path'] }}
+
+
+
Namespace
+
{{ $module['namespace'] }}
+
+
+
Capabilities
+
+
+ Routes + Migrations + Views + Translations +
+
+
+
+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/modules/index.blade.php b/app/Modules/Admin/Resources/views/modules/index.blade.php new file mode 100644 index 0000000..71e64c7 --- /dev/null +++ b/app/Modules/Admin/Resources/views/modules/index.blade.php @@ -0,0 +1,206 @@ +@extends('admin::layouts.app') + +@section('title', 'Modules') + +@section('content') +
+
+

Modules

+
+
+ +
+ @if(session('success')) +
+ +

{{ session('success') }}

+
+ @endif + + @if(session('warning')) +
+ +

{{ session('warning') }}

+
+ @endif + + @if(session('error')) +
+ +

{{ session('error') }}

+
+ @endif + +
+
+
+ +
+
+

Total Modules

+

{{ $modules->count() }}

+
+
+
+
+ +
+
+

Enabled

+

{{ $modules->where('enabled', true)->count() }}

+
+
+
+
+ +
+
+

Disabled

+

{{ $modules->where('enabled', false)->count() }}

+
+
+
+ +
+
+
+ +
+
+

Core

+

{{ $modules->where('module_type', 'core')->count() }}

+
+
+
+
+ +
+
+

Third Party

+

{{ $modules->where('module_type', 'third_party')->count() }}

+
+
+
+ +
+
+

Installed Modules

+ {{ $modules->count() }} modules +
+ +
+ @if($modules->isNotEmpty()) +
+ + + + + + + + + + + + @foreach($modules as $module) + + + + + + + + @endforeach + +
ModuleStatusTypeCapabilitiesActions
+

{{ $module['name'] }}

+

{{ $module['folder'] }}

+
+ @if($module['enabled']) + Enabled + @else + Disabled + @endif + + @if($module['module_type'] === 'third_party') + Third Party + @else + Core + @endif + +
+ Routes + Migrations + Views + Translations +
+
+
+ @if($module['folder'] !== 'Admin') +
+ @csrf + @method('PATCH') + +
+ +
+ @csrf + +
+ + + Configure + + +
+ @csrf + @method('DELETE') + + +
+ +
+ @csrf + @method('DELETE') + +
+ @endif +
+
+
+ @else +
+
+ +
+

No modules found.

+
+ @endif +
+
+
+@endsection + +@push('scripts') + +@endpush diff --git a/app/Modules/Admin/Resources/views/news/categories/create.blade.php b/app/Modules/Admin/Resources/views/news/categories/create.blade.php new file mode 100644 index 0000000..62f9d03 --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/categories/create.blade.php @@ -0,0 +1,91 @@ +@extends('admin::layouts.app') + +@section('title', 'Create Category') + +@section('content') +
+
+ + + +

Create Category

+
+
+ +
+ @if($errors->any()) +
+ @foreach($errors->all() as $error) +

{{ $error }}

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

Category Details

+
+
+
+ + +
+
+ + +

Leave empty to auto-generate from name.

+
+
+ + +
+
+
+ + +
+
+
+ + + +
+
+
+
+
+ Cancel + +
+
+
+
+ +@push('scripts') + +@endpush +@endsection diff --git a/app/Modules/Admin/Resources/views/news/categories/edit.blade.php b/app/Modules/Admin/Resources/views/news/categories/edit.blade.php new file mode 100644 index 0000000..2aa7243 --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/categories/edit.blade.php @@ -0,0 +1,83 @@ +@extends('admin::layouts.app') + +@section('title', 'Edit Category') + +@section('content') +
+
+ + + +

Edit Category

+
+
+ +
+ @if(session('success')) +
{{ session('success') }}
+ @endif + @if($errors->any()) +
+ @foreach($errors->all() as $error)

{{ $error }}

@endforeach +
+ @endif + +
+ @csrf @method('PUT') +
+
+

Category Details

+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+ + is_active) ? 'checked' : '' }} + class="rounded border-gray-300 text-blue-600 focus:ring-blue-500"> + +
+
+
+
+
+ + @csrf @method('DELETE') + + +
+ Cancel + +
+
+
+ +
+@endsection diff --git a/app/Modules/Admin/Resources/views/news/categories/index.blade.php b/app/Modules/Admin/Resources/views/news/categories/index.blade.php new file mode 100644 index 0000000..75296fe --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/categories/index.blade.php @@ -0,0 +1,106 @@ +@extends('admin::layouts.app') + +@section('title', 'News Categories') + +@section('content') +
+
+ + + +

News Categories

+
+ +
+ +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @if(session('error')) +
+ {{ session('error') }} +
+ @endif + +
+
+

All Categories

+ {{ $categories->total() }} categories +
+ +
+ + + + + + + + + + + + + @forelse($categories as $category) + + + + + + + + + @empty + + + + @endforelse + +
NameSlugArticlesStatusOrderActions
+

{{ $category->name }}

+ @if($category->description) +

{{ $category->description }}

+ @endif +
{{ $category->slug }}{{ $category->news_count }} + @if($category->trashed()) + Deleted + @elseif($category->is_active) + Active + @else + Inactive + @endif + {{ $category->order }} +
+ @if(!$category->trashed()) + + Edit + +
+ @csrf @method('DELETE') + +
+ @endif +
+
+ + No categories found. Create the first one. +
+
+ + @if($categories->hasPages()) +
+ {{ $categories->links() }} +
+ @endif +
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/news/create.blade.php b/app/Modules/Admin/Resources/views/news/create.blade.php new file mode 100644 index 0000000..bfa3fdf --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/create.blade.php @@ -0,0 +1,370 @@ +@extends('admin::layouts.app') + +@section('title', 'Create News Article') + +@section('content') +
+
+ + + +

Create News Article

+
+
+ +
+
+ +
+ @if($errors->any()) +
+

Please fix the following errors:

+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf +
+ + {{-- Main content --}} +
+ + @if($isMultilingual && count($activeLocales) > 1) + {{-- Multilingual tabs --}} +
+
+ +
+ + @foreach($activeLocales as $i => $locale) +
+
+ + + @if($locale === $defaultLocale) +

Slug will be auto-generated from this title if left blank.

+ @endif +
+
+ +

Short summary shown in news listings. Optional.

+ +
+
+ + +
+
+ @endforeach +
+ @else + {{-- Single language mode --}} +
+
+

Content

+
+
+
+ + +

Slug will be auto-generated if left blank.

+
+
+ +

Short summary shown in news listings. Optional.

+ +
+
+ + +
+
+
+ @endif + +
+ + {{-- Sidebar --}} +
+ + {{-- Publish --}} +
+
+

Publish

+
+
+
+ + + +
+
+ + +
+
+
+ +
+
+ + {{-- Slug --}} +
+
+

Permalink

+
+
+ + +

/news/your-slug

+
+
+ + {{-- Category --}} +
+
+

Category

+
+
+ +
+
+ + {{-- Featured Image --}} +
+
+

Featured Image

+
+
+ + +

Recommended: 1200×630px, max 4MB

+
+
+ +
+
+
+
+ +@push('styles') + +@endpush + +@push('scripts') + + + +@endpush +@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/news/edit.blade.php b/app/Modules/Admin/Resources/views/news/edit.blade.php new file mode 100644 index 0000000..eb42fee --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/edit.blade.php @@ -0,0 +1,406 @@ +@extends('admin::layouts.app') + +@section('title', 'Edit News Article') + +@section('content') +
+
+ + + +

Edit Article

+ /news/{{ $news->slug }} +
+
+ + View + + +
+
+ +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @if($errors->any()) +
+

Please fix the following errors:

+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf + @method('PUT') +
+ + {{-- Main content --}} +
+ + @if($isMultilingual && count($activeLocales) > 1) + {{-- Multilingual tabs --}} +
+
+ +
+ + @foreach($activeLocales as $i => $locale) +
+
+ + title_translations[$locale] ?? '') }}" + class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" + {{ $locale === $defaultLocale ? 'required' : '' }} + placeholder="Article title in {{ $localeNames[$locale] ?? $locale }}"> +
+
+ +

Short summary shown in news listings. Optional.

+ +
+
+ + +
+
+ @endforeach +
+ + @else + {{-- Single language mode --}} +
+
+

Content

+
+
+
+ + +
+
+ +

Short summary shown in news listings. Optional.

+ +
+
+ + +
+
+
+ @endif + +
+ + {{-- Sidebar --}} +
+ + {{-- Publish --}} +
+
+

Publish

+
+
+
+ + is_published) ? 'checked' : '' }} + class="rounded border-gray-300 text-blue-600 focus:ring-blue-500"> + +
+
+ + +
+
+ Created: {{ $news->created_at->format('M d, Y H:i') }}
+ Updated: {{ $news->updated_at->format('M d, Y H:i') }} +
+
+
+ +
+
+ + {{-- Slug --}} +
+
+

Permalink

+
+
+ + +

/news/{{ $news->slug }}

+
+
+ + {{-- Category --}} +
+
+

Category

+
+
+ +
+
+ + {{-- Featured Image --}} +
+
+

Featured Image

+
+
+ @if($news->image) +
+ +

Current image. Upload a new one to replace.

+
+ @endif + + +
+
+ + {{-- Danger zone --}} +
+
+

Danger Zone

+
+
+ +
+
+ +
+
+
+ + {{-- Delete form is intentionally OUTSIDE the main form to prevent _method conflicts --}} +
+ @csrf + @method('DELETE') +
+
+ +@push('styles') + +@endpush + +@push('scripts') + + + +@endpush +@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/news/index.blade.php b/app/Modules/Admin/Resources/views/news/index.blade.php new file mode 100644 index 0000000..261471c --- /dev/null +++ b/app/Modules/Admin/Resources/views/news/index.blade.php @@ -0,0 +1,140 @@ +@extends('admin::layouts.app') + +@section('title', 'News') + +@section('content') +
+
+

News Management

+
+ +
+ +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @if(session('error')) +
+ {{ session('error') }} +
+ @endif + +
+
+

All Articles

+ {{ $news->total() }} articles +
+ +
+ + + + + + + + + + + + + @forelse($news as $article) + + + + + + + + + @empty + + + + @endforelse + +
TitleCategoryAuthorStatusDateActions
+
+ @if($article->image) + + @else +
+ +
+ @endif +
+

{{ $article->title }}

+

/news/{{ $article->slug }}

+ @if($article->title_translations) +
+ @foreach(array_keys($article->title_translations) as $locale) + {{ $locale }} + @endforeach +
+ @endif +
+
+
{{ $article->category->name ?? '—' }}{{ $article->author->name ?? '—' }} + @if($article->trashed()) + + Deleted + + @elseif($article->is_published) + + Published + + @else + + Draft + + @endif + + {{ $article->published_at ? $article->published_at->format('M d, Y') : $article->created_at->format('M d, Y') }} + +
+ @if($article->trashed()) +
+ @csrf @method('PATCH') + +
+ @else + + Edit + + + View + +
+ @csrf @method('DELETE') + +
+ @endif +
+
+ + No news articles found. Create the first one. +
+
+ + @if($news->hasPages()) +
+ {{ $news->links() }} +
+ @endif +
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/permissions/index.blade.php b/app/Modules/Admin/Resources/views/permissions/index.blade.php new file mode 100644 index 0000000..da69f9e --- /dev/null +++ b/app/Modules/Admin/Resources/views/permissions/index.blade.php @@ -0,0 +1,78 @@ +@extends('admin::layouts.app') + +@section('title', 'Permission List') + +@section('content') +
+
+

Permission List

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

Available Permissions

+

Based on the current system configuration

+
+
+ + +
+
+ @php + $grouped = $permissions->groupBy(fn($p) => explode('.', $p->name)[0]); + @endphp +
+ @foreach($grouped as $group => $items) +
+
+

{{ $group }}

+ Total: {{ $items->count() }} +
+
+ @foreach($items as $permission) +
+
+
+ +
+
+

{{ $permission->name }}

+

ID: {{ $permission->id }}

+
+
+ {{ explode('.', $permission->name)[0] }} +
+ @endforeach +
+
+ @endforeach + @if($permissions->isEmpty()) +
No permissions are configured.
+ @endif +
+
+
+ + +@endsection + diff --git a/app/Modules/Admin/Resources/views/realms/create.blade.php b/app/Modules/Admin/Resources/views/realms/create.blade.php new file mode 100644 index 0000000..576ddf7 --- /dev/null +++ b/app/Modules/Admin/Resources/views/realms/create.blade.php @@ -0,0 +1,187 @@ +@extends('admin::layouts.app') + +@section('title', 'Nuevo Realm') + +@section('content') +
+
+
+
+

Nuevo Realm

+

Alta de conexiones Auth, Characters y World

+
+ + + Volver al listado + +
+
+ +
+ @if($errors->any()) +
+

No se pudo crear el realm:

+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+
+

Formulario de alta

+
+ +
+ @csrf + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+

Consola del Realm

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + @php + $sections = [ + 'auth' => 'Auth Database', + 'characters' => 'Characters Database', + 'world' => 'World Database', + ]; + @endphp + + @foreach($sections as $key => $label) +
+

{{ $label }}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ @endforeach + +
+ +
+
+
+
+
+@endsection + +@push('scripts') + +@endpush diff --git a/app/Modules/Admin/Resources/views/realms/edit.blade.php b/app/Modules/Admin/Resources/views/realms/edit.blade.php new file mode 100644 index 0000000..4c10373 --- /dev/null +++ b/app/Modules/Admin/Resources/views/realms/edit.blade.php @@ -0,0 +1,198 @@ +@extends('admin::layouts.app') + +@section('title', 'Editar Realm') + +@section('content') +@php + $selectedEmulator = old('emulator', $realm->emulator); + $selectedUrn = old('console_urn', $realm->console_urn); +@endphp +
+
+
+
+

Editar Realm

+

Actualizar configuracion general, consola y conexiones de base de datos

+
+ + + Volver + +
+
+ +
+ @if($errors->any()) +
+

No se pudo actualizar el realm:

+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+
+

{{ $realm->name }}

+
+ +
+ @csrf + @method('PUT') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ bnet) ? 'checked' : '' }} class="rounded border-gray-300 text-blue-600 focus:ring-blue-500"> + +
+
+ +
+

Consola del Realm

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + @php + $sections = [ + 'auth' => ['label' => 'Auth Database', 'config' => $authConfig], + 'characters' => ['label' => 'Characters Database', 'config' => $charactersConfig], + 'world' => ['label' => 'World Database', 'config' => $worldConfig], + ]; + @endphp + + @foreach($sections as $key => $section) +
+

{{ $section['label'] }}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ @endforeach + +
+ +
+
+
+
+
+@endsection + +@push('scripts') + +@endpush diff --git a/app/Modules/Admin/Resources/views/realms/index.blade.php b/app/Modules/Admin/Resources/views/realms/index.blade.php new file mode 100644 index 0000000..db6d540 --- /dev/null +++ b/app/Modules/Admin/Resources/views/realms/index.blade.php @@ -0,0 +1,125 @@ +@extends('admin::layouts.app') + +@section('title', 'Realm Management') + +@section('content') +
+
+
+
+

Realm Management

+

Listado y administracion de realms registrados

+
+ + + Nuevo Realm + +
+
+ +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + + @if(session('error')) +
+ {{ session('error') }} +
+ @endif + + @if(session('soap_test_log')) + @php + $soapLog = session('soap_test_log'); + @endphp +
+
+

SOAP Server Info Log

+ {{ $soapLog['timestamp'] ?? '' }} +
+
+
Realm: {{ $soapLog['realm'] ?? '-' }}
+
Command: {{ $soapLog['command'] ?? '-' }}
+
{{ $soapLog['response'] ?? '-' }}
+
+
+ @endif + +
+
+

Realms registrados

+ {{ $realms->total() }} total +
+ +
+ + + + + + + + + + + + @forelse($realms as $realm) + @php + $auth = json_decode($realm->auth_database ?? '{}', true) ?: []; + $characters = json_decode($realm->character_database ?? '{}', true) ?: []; + $world = json_decode($realm->world_database ?? '{}', true) ?: []; + @endphp + + + + + + + + @empty + + + + @endforelse + +
RealmHost:PortEmulatorDatabasesAcciones
+
{{ $realm->name }}
+
Expansion {{ $realm->expansion }}{{ $realm->bnet ? ' - BNET' : '' }}
+
{{ $realm->hostname }}:{{ $realm->port }}{{ $realm->emulator }} +
Auth: {{ $auth['database'] ?? '-' }} @ {{ $auth['host'] ?? '-' }}
+
Characters: {{ $characters['database'] ?? '-' }} @ {{ $characters['host'] ?? '-' }}
+
World: {{ $world['database'] ?? '-' }} @ {{ $world['host'] ?? '-' }}
+
+
+
+ @csrf + +
+ + + Editar + +
+ @csrf + @method('DELETE') + +
+
+
No hay realms registrados.
+
+ +
+ {{ $realms->links() }} +
+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/roles/create.blade.php b/app/Modules/Admin/Resources/views/roles/create.blade.php new file mode 100644 index 0000000..c94e2f8 --- /dev/null +++ b/app/Modules/Admin/Resources/views/roles/create.blade.php @@ -0,0 +1,151 @@ +@extends('admin::layouts.app') + +@section('title', 'Crear Rol') + +@section('content') +
+
+

Create New Role

+
+ +
+ +
+
+ @csrf +
+
+

Role Information

+
+
+
+ + + @error('name') +

{{ $message }}

+ @enderror +
+
+
+ +
+
+

Assign Permissions (Drag & Drop)

+

Drag permissions from the available list to the role list.

+
+
+
+

Available Permissions

+
+ @foreach($permissions as $permission) +
+
+
+ +
+ {{ $permission->name }} +
+ {{ explode('.', $permission->name)[0] }} +
+ @endforeach +
+
+
+

Role Permissions

+
+
Drag permissions here to add them to the role
+
+
+
+ +
+ +
+
+ +
+
+
+ + +@endsection + diff --git a/app/Modules/Admin/Resources/views/roles/edit.blade.php b/app/Modules/Admin/Resources/views/roles/edit.blade.php new file mode 100644 index 0000000..c10f422 --- /dev/null +++ b/app/Modules/Admin/Resources/views/roles/edit.blade.php @@ -0,0 +1,200 @@ +@extends('admin::layouts.app') + +@section('title', 'Editar Rol') + +@section('content') +
+
+

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

+
+ +
+ +
+
+ @csrf + @method('PUT') +
+
+

Role Details

+
+
+
+ + + @error('name') +

{{ $message }}

+ @enderror +
+
+
+ +
+
+

Permissions (Drag & Drop)

+

Drag permissions between lists to update the role.

+
+
+
+

Available Permissions

+
+ @php + $selectedSet = collect($selected); + @endphp + @foreach($permissions as $permission) + @if(!$selectedSet->contains($permission->name)) +
+
+
+ +
+ {{ $permission->name }} +
+ {{ explode('.', $permission->name)[0] }} +
+ @endif + @endforeach +
+
+
+

Role Permissions

+
+ @forelse($permissions as $permission) + @if($selectedSet->contains($permission->name)) +
+
+
+ +
+ {{ $permission->name }} +
+ {{ explode('.', $permission->name)[0] }} +
+ @endif + @empty +
Drag permissions here to add them to the role
+ @endforelse +
+
+
+
+ +
+
+ +
+ @foreach($selected as $name) + + @endforeach +
+
+
+ + +@endsection + diff --git a/app/Modules/Admin/Resources/views/roles/index.blade.php b/app/Modules/Admin/Resources/views/roles/index.blade.php new file mode 100644 index 0000000..835e1a9 --- /dev/null +++ b/app/Modules/Admin/Resources/views/roles/index.blade.php @@ -0,0 +1,57 @@ +@extends('admin::layouts.app') + +@section('title', 'Roles') + +@section('content') +
+
+

Roles & Permissions

+
+ +
+ +
+
+
+

Role List

+
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif +
+
+ @forelse($roles as $role) +
+
+
+
+ +
+
+

{{ $role->name }}

+

Permissions: {{ $role->permissions_count }}

+
+
+
+ Edit + Delete +
+
+
+ @empty +
No roles created.
+ @endforelse +
+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/advanced.blade.php b/app/Modules/Admin/Resources/views/settings/advanced.blade.php new file mode 100644 index 0000000..e16cc35 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/advanced.blade.php @@ -0,0 +1,142 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+ + {{-- Seeders --}} +
+
+

+ + {{ __('admin::settings.advanced.seeders_title') }} +

+

{{ __('admin::settings.advanced.seeders_description') }}

+
+
+ + {{-- Roles & Permissions --}} +
+
+ +
+
+

{{ __('admin::settings.advanced.seeder_roles_title') }}

+

{{ __('admin::settings.advanced.seeder_roles_desc') }}

+
+ +
+ + {{-- Forums --}} +
+
+ +
+
+

{{ __('admin::settings.advanced.seeder_forums_title') }}

+

{{ __('admin::settings.advanced.seeder_forums_desc') }}

+
+ +
+ + {{-- Donation Plans --}} +
+
+ +
+
+

{{ __('admin::settings.advanced.seeder_donations_title') }}

+

{{ __('admin::settings.advanced.seeder_donations_desc') }}

+
+ +
+ + {{-- All Seeders --}} +
+
+ +
+
+

{{ __('admin::settings.advanced.seeder_all_title') }}

+

{{ __('admin::settings.advanced.seeder_all_desc') }}

+
+ +
+ +
+
+ + {{-- Cache Management --}} +
+
+

+ + {{ __('admin::settings.advanced.cache_title') }} +

+

{{ __('admin::settings.advanced.cache_description') }}

+
+
+ + @php + $cacheItems = [ + ['key' => 'config', 'icon' => 'fa-cog', 'color' => 'gray', 'form' => 'cache-config'], + ['key' => 'routes', 'icon' => 'fa-route', 'color' => 'blue', 'form' => 'cache-routes'], + ['key' => 'views', 'icon' => 'fa-eye', 'color' => 'teal', 'form' => 'cache-views'], + ['key' => 'app', 'icon' => 'fa-memory', 'color' => 'purple', 'form' => 'cache-app'], + ['key' => 'all', 'icon' => 'fa-trash-alt', 'color' => 'red', 'form' => 'cache-all'], + ]; + @endphp + + @foreach($cacheItems as $item) +
+
+ +
+
+

{{ __('admin::settings.advanced.cache_' . $item['key'] . '_title') }}

+

{{ __('admin::settings.advanced.cache_' . $item['key'] . '_desc') }}

+
+ +
+ @endforeach + +
+
+ +
+@endsection + +@push('after_settings_form') +{{-- Seeder forms (outside main settings form to avoid nesting) --}} +
@csrf
+
@csrf
+
@csrf
+
@csrf
+ +{{-- Cache forms --}} +
@csrf
+
@csrf
+
@csrf
+
@csrf
+
@csrf
+@endpush + diff --git a/app/Modules/Admin/Resources/views/settings/api.blade.php b/app/Modules/Admin/Resources/views/settings/api.blade.php new file mode 100644 index 0000000..ab5902b --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/api.blade.php @@ -0,0 +1,13 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ ucfirst($view) }} Settings

+

Configure {{ $view }} settings

+
+
+

This section is under construction.

+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/appearance.blade.php b/app/Modules/Admin/Resources/views/settings/appearance.blade.php new file mode 100644 index 0000000..ab5902b --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/appearance.blade.php @@ -0,0 +1,13 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ ucfirst($view) }} Settings

+

Configure {{ $view }} settings

+
+
+

This section is under construction.

+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/email.blade.php b/app/Modules/Admin/Resources/views/settings/email.blade.php new file mode 100644 index 0000000..e378951 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/email.blade.php @@ -0,0 +1,51 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ __('admin::settings.email.title') }}

+

{{ __('admin::settings.email.description') }}

+
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ +
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/extends/menu.blade.php b/app/Modules/Admin/Resources/views/settings/extends/menu.blade.php new file mode 100644 index 0000000..1ac2689 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/extends/menu.blade.php @@ -0,0 +1,32 @@ +
+ +
+ @can('manage.settings') + + @endcan +
+
diff --git a/app/Modules/Admin/Resources/views/settings/general.blade.php b/app/Modules/Admin/Resources/views/settings/general.blade.php new file mode 100644 index 0000000..1c6482a --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/general.blade.php @@ -0,0 +1,63 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ __('admin::settings.general.title') }}

+

{{ __('admin::settings.general.description') }}

+
+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/index.blade.php b/app/Modules/Admin/Resources/views/settings/index.blade.php new file mode 100644 index 0000000..3bd1779 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/index.blade.php @@ -0,0 +1,53 @@ +@extends('admin::layouts.app') + +@section('Title', 'Settings') + +@section('content') +
+ +
+
+

System Settings

+
+
+ @if(request('view', 'general') !== 'advanced') + + @endif +
+
+
+ @include('admin::settings.extends.menu') + +
+ @if(session('success')) + + @endif + @if(session('advanced_success')) + + @endif + @if(session('advanced_error')) + + @endif +
+ @csrf + + @yield('settings_content') +
+ + @stack('after_settings_form') +
+ +
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/localization.blade.php b/app/Modules/Admin/Resources/views/settings/localization.blade.php new file mode 100644 index 0000000..cdd98cf --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/localization.blade.php @@ -0,0 +1,205 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+ +{{-- Existing locale/timezone settings --}} +
+
+

{{ __('admin::settings.localization.title') }}

+

{{ __('admin::settings.localization.description') }}

+
+
+
+
+ + +

{{ __('admin::settings.localization.default_locale.help') }}

+
+ +
+ + +

{{ __('admin::settings.localization.timezone.help') }}

+
+
+ +
+
+ + +

{{ __('admin::settings.localization.date_format.help') }}

+
+ +
+ + +

{{ __('admin::settings.localization.time_format.help') }}

+
+
+
+
+ +{{-- Multilingual content settings --}} +
+
+

{{ __('admin::settings.localization.multilingual.section_title') }}

+

{{ __('admin::settings.localization.multilingual.section_description') }}

+
+
+ + {{-- Toggle --}} +
+ + +
+ +

{{ __('admin::settings.localization.multilingual.enabled_help') }}

+
+
+ + {{-- Available locales manager --}} +
+
+ +

{{ __('admin::settings.localization.multilingual.locales_help') }}

+ + {{-- Hidden input stores the JSON array --}} + + + {{-- Visual tag list --}} +
+ {{-- Rendered by JS --}} +
+ + {{-- Add locale input --}} +
+ + +
+ + {{-- Known locale quick-add --}} + @php + $knownLocales = ['en' => 'English', 'es' => 'Español', 'fr' => 'Français', 'de' => 'Deutsch', 'it' => 'Italiano', 'pt' => 'Português', 'ru' => 'Русский']; + @endphp +
+ @foreach($knownLocales as $code => $name) + + @endforeach +
+
+
+ +
+
+ +
+ +@push('scripts') + +@endpush +@endsection diff --git a/app/Modules/Admin/Resources/views/settings/maintenance.blade.php b/app/Modules/Admin/Resources/views/settings/maintenance.blade.php new file mode 100644 index 0000000..5b8d5f5 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/maintenance.blade.php @@ -0,0 +1,22 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ __('admin::settings.maintenance.title') }}

+

{{ __('admin::settings.maintenance.description') }}

+
+
+
+ + + +
+
+ + +

{{ __('admin::settings.maintenance.message.help') }}

+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/payment.blade.php b/app/Modules/Admin/Resources/views/settings/payment.blade.php new file mode 100644 index 0000000..ab5902b --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/payment.blade.php @@ -0,0 +1,13 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ ucfirst($view) }} Settings

+

Configure {{ $view }} settings

+
+
+

This section is under construction.

+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/security.blade.php b/app/Modules/Admin/Resources/views/settings/security.blade.php new file mode 100644 index 0000000..6ac6d34 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/security.blade.php @@ -0,0 +1,86 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ __('admin::settings.security.title') }}

+

{{ __('admin::settings.security.description') }}

+
+
+
+

{{ __('admin::settings.security.password_policies.title') }}

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

{{ __('admin::settings.security.account_protection.title') }}

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

{{ __('admin::settings.security.session.title') }}

+
+
+ + +
+
+
+ + + +
+
+ + + +
+
+ + + +
+
+
+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/seo.blade.php b/app/Modules/Admin/Resources/views/settings/seo.blade.php new file mode 100644 index 0000000..2d730a1 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/seo.blade.php @@ -0,0 +1,100 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+
+

{{ ucfirst($view) }} Settings

+

Configure search engine optimization and social sharing preferences

+
+
+ +
+

Global Meta Tags

+
+
+ + +

Used as the default title tag if no specific title is set for a page.

+
+ +
+ + +

A brief summary of your site (recommended 150-160 characters).

+
+ +
+ + +

Comma-separated list of keywords.

+
+
+
+ + +
+

Social Media (Open Graph & Twitter)

+
+
+ + +

Absolute URL to an image used when sharing on social media.

+
+ +
+ +
+ @ + +
+

Your site's Twitter username.

+
+
+
+ + +
+

Analytics & Tracking

+
+
+ + +

Your Google Analytics 4 Measurement ID.

+
+
+ + +
+
+
+ + +
+

Custom Scripts

+
+
+ + +

Code to be inserted before the closing </head> tag.

+
+
+ + +

Code to be inserted before the closing </body> tag.

+
+
+
+ + +
+

Indexing

+
+ + + +
+

Uncheck this to add <meta name="robots" content="noindex, nofollow"> to your pages.

+
+
+
+@endsection diff --git a/app/Modules/Admin/Resources/views/settings/updates.blade.php b/app/Modules/Admin/Resources/views/settings/updates.blade.php new file mode 100644 index 0000000..024ca66 --- /dev/null +++ b/app/Modules/Admin/Resources/views/settings/updates.blade.php @@ -0,0 +1,145 @@ +@extends('admin::settings.index') + +@section('settings_content') +
+ + {{-- Repository --}} +
+
+

+ + Source Repository +

+

GitHub repository to fetch updates from.

+
+
+
+ + +

GitHub username or organisation.

+
+
+ + +

Exact repository name (case-sensitive).

+
+
+ + +

+ Required for private repositories. Also increases the GitHub API rate limit from 60 to 5,000 requests/hour. + Leave empty to use unauthenticated requests. +

+
+
+
+ + {{-- Update Behaviour --}} +
+
+

+ + Update Behaviour +

+
+
+ + {{-- Channel --}} +
+ +
+ @php + $currentChannel = $settings->get('update_channel', 'any'); + $channels = [ + 'stable' => ['label' => 'Stable', 'desc' => 'Only full releases', 'icon' => 'fa-shield-check', 'color' => 'green'], + 'beta' => ['label' => 'Beta', 'desc' => 'Includes pre-releases', 'icon' => 'fa-flask', 'color' => 'orange'], + 'any' => ['label' => 'Any', 'desc' => 'All published releases', 'icon' => 'fa-bolt', 'color' => 'red'], + ]; + @endphp + @foreach($channels as $val => $ch) + + @endforeach +
+
+ + {{-- Toggles --}} +
+ {{-- Enabled --}} +
+
+

Auto-update System

+

Enable or disable the update checker and apply button.

+
+ +
+ + {{-- Maintenance mode --}} +
+
+

Maintenance Mode During Update

+

Put the site in maintenance mode while applying an update.

+
+ +
+
+
+
+ + {{-- Info box --}} +
+ +

+ These settings are stored in the database and take effect immediately without redeploying. + To apply updates, go to System › Updates. +

+
+ +
+@endsection diff --git a/app/Modules/Admin/Resources/views/updates/index.blade.php b/app/Modules/Admin/Resources/views/updates/index.blade.php new file mode 100644 index 0000000..ef9972e --- /dev/null +++ b/app/Modules/Admin/Resources/views/updates/index.blade.php @@ -0,0 +1,469 @@ +@extends('admin::layouts.app') + +@section('Title', 'System Updates') + +@section('content') +
+ + {{-- Header --}} +
+

+ + System Updates +

+ +
+ + {{-- Main Content --}} +
+ + @if(!settings('update_enabled', config('update.enabled', true))) +
+ +
+

Auto-updates are disabled

+

Enable them from Settings → Updates.

+
+
+ @endif + + {{-- Status Hero --}} + @if(!$latest) + {{-- Cannot reach GitHub --}} +
+
+
+ +
+
+

Could not reach GitHub

+

+ Unable to fetch release information for + {{ settings('update_repo_owner', config('update.repository.owner')) }}/{{ settings('update_repo_name', config('update.repository.name')) }}. + Check your connection or add a GITHUB_TOKEN if the repo is private. +

+
+
+
+ + @elseif($outdated) + {{-- Update Available --}} + @php + $allOk = collect($checks)->every(fn($c) => $c['ok'] || !($c['required'] ?? true)); + $requiredFailed = collect($checks)->contains(fn($c) => !$c['ok'] && ($c['required'] ?? true)); + @endphp +
+
+
+
+
+ +
+
+
+ + Update Available +
+

{{ $latest['tag_name'] }}

+ @if($latest['published_at']) +

Released {{ \Carbon\Carbon::parse($latest['published_at'])->format('F j, Y') }}

+ @endif +
+
+
+
+

Current

+ v{{ $current }} +
+ +
+

Latest

+ {{ $latest['tag_name'] }} +
+
+
+
+ +
+ {{-- Release Notes --}} +
+

+ Release Notes +

+ @if($latest['body']) +
{{ $latest['body'] }}
+ @else +

No release notes provided.

+ @endif + @if($latest['html_url']) + + View on GitHub + + @endif +
+ + {{-- Pre-flight + Apply --}} +
+

+ Pre-flight + + {{ collect($checks)->where('ok', true)->count() }}/{{ count($checks) }} passed + +

+
+ @foreach($checks as $check) + @php + $req = $check['required'] ?? true; + if ($check['ok']) { + $dot = 'bg-green-500'; $txt = 'text-green-700'; $sub = 'text-green-500'; + } elseif (!$req) { + $dot = 'bg-yellow-400'; $txt = 'text-yellow-700'; $sub = 'text-yellow-500'; + } else { + $dot = 'bg-red-500'; $txt = 'text-red-700'; $sub = 'text-red-500'; + } + @endphp +
+ +
+

{{ $check['name'] }}

+ @if($check['detail'] ?? '') +

{{ $check['detail'] }}

+ @endif + @if(!$check['ok'] && !$req) +

Warning only

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

+ Method: {{ strtoupper($method) }} +

+
+
+
+
+ + @else + {{-- Up to date --}} +
+
+
+ +
+
+

Up to Date

+

v{{ $current }}

+ @php + $pubAt = $currentRelease['published_at'] ?? ($latest['published_at'] ?? null); + @endphp + @if($pubAt) +

Released {{ \Carbon\Carbon::parse($pubAt)->diffForHumans() }}

+ @endif +
+
+ @php $noteUrl = $currentRelease['html_url'] ?? ($latest['html_url'] ?? null); @endphp + @if($noteUrl) + + Release Notes + + @endif +
+
+
+ @endif + + {{-- Bottom grid: Pre-flight (standalone) + Recent Releases + History --}} +
+ + {{-- Pre-flight Checks (standalone card, always visible) --}} + @if(!$outdated && $latest) + @php + $allOk = collect($checks)->every(fn($c) => $c['ok'] || !($c['required'] ?? true)); + $requiredFailed = collect($checks)->contains(fn($c) => !$c['ok'] && ($c['required'] ?? true)); + @endphp +
+
+

+ + Pre-flight Checks +

+ + {{ collect($checks)->where('ok', true)->count() }}/{{ count($checks) }} passed + +
+
+ @foreach($checks as $check) + @php + $req = $check['required'] ?? true; + if ($check['ok']) { + $bg = 'bg-green-50 border border-green-100'; $icon = 'circle-check text-green-500'; $t = 'text-green-800'; $d = 'text-green-600'; + } elseif (!$req) { + $bg = 'bg-yellow-50 border border-yellow-100'; $icon = 'triangle-exclamation text-yellow-500'; $t = 'text-yellow-800'; $d = 'text-yellow-600'; + } else { + $bg = 'bg-red-50 border border-red-100'; $icon = 'circle-xmark text-red-500'; $t = 'text-red-800'; $d = 'text-red-600'; + } + @endphp +
+ +
+

{{ $check['name'] }}

+ @if($check['detail'] ?? '') +

{{ $check['detail'] }}

+ @endif + @if(!$check['ok'] && !$req) +

Warning only — won't block the update

+ @endif +
+
+ @endforeach +
+
+ @endif + + {{-- Recent Releases --}} + @if(!empty($releases)) +
+
+ +

Recent Releases

+
+
+ @foreach($releases as $release) +
+ {{ $release['tag_name'] }} + {{ $release['name'] ?? '' }} + @if($release['prerelease'] ?? false) + pre-release + @endif + @if($release['published_at'] ?? null) + {{ \Carbon\Carbon::parse($release['published_at'])->format('Y-m-d') }} + @endif + @if($release['html_url'] ?? null) + + Notes + + @endif +
+ @endforeach +
+
+ @endif + + {{-- Update History --}} +
+
+ +

Update History

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

No updates applied yet.

+
+ @else +
+ + + + + + + + + + + + + + @foreach($history as $entry) + + + + + + + + + + @endforeach + +
FromToMethodStatusByDateLog
{{ $entry->from_version ?? '—' }}{{ $entry->to_version }} + + {{ $entry->method }} + + + + + {{ $entry->status }} + + {{ $entry->executor?->name ?? 'System' }}{{ $entry->created_at->format('Y-m-d H:i') }} + @if($entry->notes) + + + @endif +
+
+ @endif +
+ +
+
+
+ +{{-- Update Confirmation Modal --}} + +@endsection + +@push('scripts') + +@endpush \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/users/create.blade.php b/app/Modules/Admin/Resources/views/users/create.blade.php new file mode 100644 index 0000000..f0a4152 --- /dev/null +++ b/app/Modules/Admin/Resources/views/users/create.blade.php @@ -0,0 +1,170 @@ +@extends('admin::layouts.app') + +@section('title', 'Create User') + +@section('content') +
+ +
+
+
+
+
+ + + +
+
+

Create New User

+

Fill in the details to create a user account

+
+
+ + ← Back + +
+
+
+ + +
+
+ @csrf + +
+ +
+ +
+
+

Account Information

+
+
+
+ + + @error('name')

{{ $message }}

@enderror +
+ +
+ + + @error('email')

{{ $message }}

@enderror +
+ +
+ + + @error('password')

{{ $message }}

@enderror +
+ +
+ + + + @error('roles')

{{ $message }}

@enderror +
+
+
+ + +
+
+

Initial Points

+

Optional: Set starting balance for the user

+
+
+
+
+ + + @error('dp')

{{ $message }}

@enderror +
+ +
+ + + @error('vp')

{{ $message }}

@enderror +
+
+
+
+
+ + +
+
+
+ + + Cancel + +
+
+
+
+
+
+
+@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/users/edit.blade.php b/app/Modules/Admin/Resources/views/users/edit.blade.php new file mode 100644 index 0000000..51a49aa --- /dev/null +++ b/app/Modules/Admin/Resources/views/users/edit.blade.php @@ -0,0 +1,170 @@ +@extends('admin::layouts.app') + +@section('title', 'Edit User') + +@section('content') +
+ +
+
+
+
+
+ + + +
+
+

Edit User

+

Update the details for this user account

+
+
+ + ← Back + +
+
+
+ + +
+
+ @csrf + @method('PUT') + +
+ +
+ +
+
+

Account Information

+
+
+
+ + + @error('name')

{{ $message }}

@enderror +
+ +
+ + + @error('email')

{{ $message }}

@enderror +
+ +
+ + + @error('password')

{{ $message }}

@enderror +
+ +
+ + + + @error('roles')

{{ $message }}

@enderror +
+
+
+ + +
+
+

User Points

+

Update the current balance for the user

+
+
+
+
+ + + @error('dp')

{{ $message }}

@enderror +
+ +
+ + + @error('vp')

{{ $message }}

@enderror +
+
+
+
+
+ + +
+
+
+ + + Cancel + +
+
+
+
+
+
+
+@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/users/index.blade.php b/app/Modules/Admin/Resources/views/users/index.blade.php new file mode 100644 index 0000000..97c61c5 --- /dev/null +++ b/app/Modules/Admin/Resources/views/users/index.blade.php @@ -0,0 +1,296 @@ +@extends('admin::layouts.app') + +@section('title', 'Users') + +@section('content') +
+ +
+
+
+
+
+ + + +
+
+

Users Management

+

Manage and monitor all user accounts

+
+
+ + + + + Create User + +
+
+
+ +
+ + @if(session('success')) +
+ + + +
+

{{ session('success') }}

+
+
+ @endif + @if(session('error')) +
+ + + +
+

{{ session('error') }}

+
+
+ @endif + + +
+
+

Filters

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

User List

+ + {{ $users->total() }} users + +
+
+ + +
+
+ +
+ + + + + + + + + + + + + + + @forelse($users as $user) + + + + + + + + + + + @empty + + + + @endforelse + +
+ + UserEmailStatusRolePointsRegisteredActions
+ + +
+
+ {{ strtoupper(substr($user->name, 0, 2)) }} +
+
+
{{ $user->name }}
+
ID: #{{ $user->id }}
+
+
+
{{ $user->email }} + @if($user->status === 'active') + + + Active + + @elseif($user->status === 'banned') + + + Banned + + @else + + + {{ ucfirst($user->status) }} + + @endif + + + {{ $user->roles->pluck('name')->implode(', ') }} + + +
+
+ + + + + {{ $user->dp ?? 0 }} +
+
+ + + + {{ $user->vp ?? 0 }} +
+
+
{{ $user->created_at->format('M d, Y') }} +
+ + + + + + View + + + + + + Edit + +
+ @csrf + @method('DELETE') + +
+
+
+
+ + + +

No users found

+

Try adjusting your filters

+
+
+
+ + +
+ {{ $users->links() }} +
+
+
+
+ + + + +@vite('resources/js/scripts/listColumns.js') +@endsection \ No newline at end of file diff --git a/app/Modules/Admin/Resources/views/users/show.blade.php b/app/Modules/Admin/Resources/views/users/show.blade.php new file mode 100644 index 0000000..696587c --- /dev/null +++ b/app/Modules/Admin/Resources/views/users/show.blade.php @@ -0,0 +1,215 @@ +@extends('admin::layouts.app') + +@section('title', 'User Details') + +@section('content') +
+ @php + $userStatus = $user->status ?? 'unknown'; + $donationCount = $donationTransactions->count(); + $donationTotal = $donationTransactions->sum('amount'); + $awardedTotal = $donationTransactions->sum('dp_awarded'); + @endphp + +
+
+
+
+ +
+
+
+ {{ strtoupper(substr($user->name, 0, 2)) }} +
+
+

User Profile

+

{{ $user->name }}

+

{{ $user->email }}

+
+ + ID #{{ $user->id }} + + @if($userStatus === 'active') + Active + @elseif($userStatus === 'banned') + Banned + @elseif($userStatus === 'pending') + Pending + @else + {{ ucfirst($userStatus) }} + @endif +
+
+
+ + +
+
+ +
+
+

Donation Points

+

{{ number_format($user->dp ?? 0) }}

+
+
+

Vote Points

+

{{ number_format($user->vp ?? 0) }}

+
+
+

Donations

+

{{ $donationCount }}

+

Total awarded: {{ number_format($awardedTotal) }} DP

+
+
+

Total Donated

+

{{ number_format((float) $donationTotal, 2) }} USD

+

Across all gateways

+
+
+ +
+
+
+
+

Account Information

+
+
+
+

Registered

+

{{ optional($user->created_at)->format('M d, Y H:i') ?? '-' }}

+
+
+

Last Update

+

{{ optional($user->updated_at)->format('M d, Y H:i') ?? '-' }}

+
+
+

Assigned Roles

+ @if($user->roles->isNotEmpty()) +
+ @foreach($user->roles as $role) + {{ $role->name }} + @endforeach +
+ @else +

No roles assigned.

+ @endif +
+
+
+ +
+
+
+

User Transactions

+

Donation history and placeholder store activity

+
+ + Latest activity + +
+
+
+
+

Donations

+ @forelse($donationTransactions as $transaction) +
+
+
+

{{ strtoupper($transaction->gateway) }}

+

{{ optional($transaction->created_at)->format('M d, Y H:i') ?? '-' }}

+
+ @if($transaction->status === 'completed') + Completed + @elseif($transaction->status === 'pending') + Pending + @else + {{ ucfirst($transaction->status) }} + @endif +
+
+
+

Amount

+

{{ number_format((float) $transaction->amount, 2) }} {{ $transaction->currency }}

+
+
+

DP Awarded

+

{{ number_format($transaction->dp_awarded) }}

+
+
+

Tx: {{ $transaction->transaction_id ?? 'N/A' }}

+
+ @empty +
+

No donation transactions

+

There is no payment history for this user yet.

+
+ @endforelse +
+ +
+

Store

+
+
+
+

Placeholder: Mount Purchase

+

Apr 21, 2026 19:40

+
+ Placeholder +
+

Item: Spectral Tiger

+

Cost: 50 DP

+
+
+
+
+

Placeholder: Character Service

+

Apr 20, 2026 15:10

+
+ Placeholder +
+

Service: Faction Change

+

Cost: 30 DP

+
+
+
+
+

Placeholder: Bundle

+

Apr 19, 2026 10:05

+
+ Placeholder +
+

Bundle: PvP Starter Kit

+

Cost: 20 DP

+
+
+
+
+
+
+ +
+
+
+

Quick Actions

+

Manage this account quickly

+
+ +
+
+
+
+
+@endsection diff --git a/app/Modules/Admin/Services/ApiService.php b/app/Modules/Admin/Services/ApiService.php new file mode 100644 index 0000000..9df49f6 --- /dev/null +++ b/app/Modules/Admin/Services/ApiService.php @@ -0,0 +1,73 @@ +baseUrl = rtrim(config('services.nexus_api.url', 'https://api.wow-cms.com/api/github'), '/'); + $this->apiKey = config('services.nexus_api.key'); + $this->apiKeyHeader = config('services.nexus_api.header', 'X-API-Key'); + } + + protected function http() + { + $client = Http::timeout(5)->acceptJson(); + if (!empty($this->apiKey)) { + $client = $client->withHeaders([$this->apiKeyHeader => $this->apiKey]); + } + return $client; + } + + public function latestRelease(): array + { + try { + $response = $this->http()->get($this->baseUrl . '/wow-cms/nexuscms/latest'); + } catch (ConnectionException) { + return []; + } + + if (!$response->ok()) { + return []; + } + + $data = $response->json(); + + return is_array($data) ? $data : []; + } + + public function checkVersion(string $owner, string $repo, string $current): array + { + try { + $response = $this->http()->get("{$this->baseUrl}/{$owner}/{$repo}/check-version", [ + 'current' => $current, + ]); + } catch (ConnectionException) { + return []; + } + + if (!$response->ok()) { + return []; + } + + $data = $response->json(); + + if (!is_array($data)) { + return []; + } + + return [ + 'current' => $data['current'] ?? '', + 'latest' => $data['latest'] ?? '', + 'outdated' => $data['outdated'] ?? false, + ]; + } +} diff --git a/app/Modules/Admin/Services/UpdateService.php b/app/Modules/Admin/Services/UpdateService.php new file mode 100644 index 0000000..72f7ee2 --- /dev/null +++ b/app/Modules/Admin/Services/UpdateService.php @@ -0,0 +1,573 @@ +owner = settings('update_repo_owner', config('update.repository.owner', 'wow-cms')); + $this->repo = settings('update_repo_name', config('update.repository.name', 'nexuscms')); + $this->githubToken = settings('update_github_token', config('update.github_token')); + $this->channel = settings('update_channel', config('update.channel', 'any')); + } + + // ─── HTTP Client ───────────────────────────────────────────────────────── + + private function http(): \Illuminate\Http\Client\PendingRequest + { + $client = Http::timeout(15) + ->acceptJson() + ->withHeaders(['User-Agent' => 'NexusCMS-Updater/1.0']); + + if (!empty($this->githubToken)) { + $client = $client->withToken($this->githubToken); + } + + return $client; + } + + // ─── Release Discovery ─────────────────────────────────────────────────── + + /** + * Fetch the latest release matching the configured channel. + */ + public function getLatestRelease(): ?array + { + try { + if ($this->channel === 'stable') { + $response = $this->http()->get( + self::GITHUB_API . "/repos/{$this->owner}/{$this->repo}/releases/latest" + ); + + if (!$response->ok()) { + return null; + } + + $data = $response->json(); + return is_array($data) ? $this->normalize($data) : null; + } + + // For beta/any channel, fetch list and pick first matching + $releases = $this->getReleases(20); + return $this->matchChannel($releases); + + } catch (\Throwable) { + return null; + } + } + + /** + * Fetch the N most recent releases. + */ + public function getReleases(int $limit = 10): array + { + try { + $response = $this->http()->get( + self::GITHUB_API . "/repos/{$this->owner}/{$this->repo}/releases", + ['per_page' => min($limit, 30)] + ); + + if (!$response->ok()) { + return []; + } + + $data = $response->json(); + return is_array($data) ? array_map([$this, 'normalize'], $data) : []; + + } catch (\Throwable) { + return []; + } + } + + /** + * Fetch a specific release by tag name. + */ + public function getReleaseByTag(string $tag): ?array + { + try { + $response = $this->http()->get( + self::GITHUB_API . "/repos/{$this->owner}/{$this->repo}/releases/tags/{$tag}" + ); + + if (!$response->ok()) { + return null; + } + + $data = $response->json(); + return is_array($data) ? $this->normalize($data) : null; + + } catch (\Throwable) { + return null; + } + } + + private function normalize(array $release): array + { + $rawTag = $release['tag_name'] ?? ''; + $tag = ltrim($rawTag, 'v'); + + return [ + 'tag' => $tag, + 'tag_name' => $rawTag ?: $tag, + 'name' => $release['name'] ?? $rawTag, + 'body' => trim($release['body'] ?? ''), + 'prerelease' => (bool) ($release['prerelease'] ?? false), + 'draft' => (bool) ($release['draft'] ?? false), + 'published_at' => $release['published_at'] ?? null, + 'html_url' => $release['html_url'] ?? '', + 'zipball_url' => $release['zipball_url'] ?? '', + ]; + } + + private function matchChannel(array $releases): ?array + { + foreach ($releases as $release) { + if ($release['draft']) { + continue; + } + + if ($this->channel === 'stable' && $release['prerelease']) { + continue; + } + + return $release; + } + + return null; + } + + // ─── Version Comparison ────────────────────────────────────────────────── + + public function isOutdated(?array $latest = null): bool + { + $latest = $latest ?? $this->getLatestRelease(); + + if (!$latest) { + return false; + } + + $current = ltrim((string) config('app.version', '0.0.0'), 'v'); + $latestClean = ltrim($latest['tag_name'] ?? $latest['tag'] ?? '', 'v'); + + // Compare base versions (strip pre-release suffix) first + $currentBase = preg_replace('/[-+].*$/', '', $current); + $latestBase = preg_replace('/[-+].*$/', '', $latestClean); + + if (version_compare($latestBase, $currentBase, '>')) { + return true; + } + + if (version_compare($latestBase, $currentBase, '<')) { + return false; + } + + // Base versions are equal — compare full strings so that + // 0.1.6-alpha.1 is considered newer than 0.1.6-alpha + if ($latestClean === $current) { + return false; + } + + return version_compare($latestClean, $current, '>'); + } + + // ─── Pre-flight Checks ─────────────────────────────────────────────────── + + public function preflight(): array + { + $method = $this->detectMethod(); + $checks = []; + + // For git-based updates, PHP itself does NOT write to base_path — + // the git binary (running via exec) handles all file operations. + // So this is a warning only, never a blocker. + $checks[] = $this->check( + 'Write permission — base path', + $this->probeWrite(base_path()), + base_path(), + required: $method !== 'git' + ); + + // storage/ is needed for cache, compiled views, migrations etc. + // For zip: required. For git: artisan still needs it → required. + $checks[] = $this->check( + 'Write permission — storage', + $this->probeWrite(storage_path()), + storage_path() + ); + + $execEnabled = function_exists('exec') && + !in_array('exec', array_map('trim', explode(',', (string) ini_get('disable_functions')))); + + $checks[] = $this->check( + 'PHP exec() enabled', + $execEnabled, + 'Required to run Artisan commands post-update' + ); + + if ($method === 'git') { + $checks[] = $this->check( + 'Git binary available', + $this->commandExists('git'), + 'Used to checkout the target release tag' + ); + } else { + $free = @disk_free_space(base_path()); + $checks[] = $this->check( + 'Disk space (> 50 MB)', + $free && $free > 50 * 1024 * 1024, + $free ? number_format($free / 1024 / 1024, 1) . ' MB available' : 'Could not determine' + ); + + $checks[] = $this->check( + 'PHP ZipArchive extension', + class_exists('ZipArchive'), + 'Required to extract the downloaded release archive' + ); + } + + return $checks; + } + + private function check(string $name, bool $ok, string $detail = '', bool $required = true): array + { + return compact('name', 'ok', 'detail', 'required'); + } + + private function probeWrite(string $path): bool + { + if (!is_dir($path)) { + return false; + } + $probe = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR + . '.nexus_write_test_' . getmypid(); + try { + $result = @file_put_contents($probe, '1'); + if ($result !== false) { + @unlink($probe); + return true; + } + return false; + } catch (\Throwable) { + return false; + } + } + + // ─── Update Method Detection ───────────────────────────────────────────── + + public function detectMethod(): string + { + if (is_dir(base_path('.git')) && $this->commandExists('git')) { + return 'git'; + } + + return 'zip'; + } + + private function commandExists(string $command): bool + { + $test = PHP_OS_FAMILY === 'Windows' ? "where {$command}" : "which {$command}"; + exec($test . ' 2>&1', $output, $code); + + return $code === 0; + } + + // ─── Apply Update ──────────────────────────────────────────────────────── + + /** + * Apply a specific release tag. Returns ['success', 'log', 'error?']. + */ + public function apply(string $tag, ?int $userId = null): array + { + $fromVersion = (string) config('app.version', '0.0.0'); + $method = $this->detectMethod(); + $log = []; + $inMaintenance = false; + + try { + // 1 ─ Maintenance mode + if (settings('update_maintenance_mode', config('update.maintenance_mode', true))) { + $this->run(PHP_BINARY . ' artisan down --retry=60', $log); + $inMaintenance = true; + } + + // 2 ─ Apply files + if ($method === 'git') { + $this->applyViaGit($tag, $log); + } else { + $release = $this->getReleaseByTag($tag); + + if (!$release || empty($release['zipball_url'])) { + throw new \RuntimeException("Release '{$tag}' not found or has no downloadable archive."); + } + + $this->applyViaZip($release['zipball_url'], $tag, $log); + } + + // 3 ─ Composer (if composer.json changed) + if ($method === 'zip' && $this->commandExists('composer')) { + $this->run('composer install --no-dev --optimize-autoloader --no-interaction', $log); + } + + // 4 ─ Migrations + $this->run(PHP_BINARY . ' artisan migrate --force', $log); + + // 5 ─ Clear caches + $this->run(PHP_BINARY . ' artisan optimize:clear', $log); + + // 6 ─ Update .env version + $this->writeEnvVersion($tag); + $log[] = "✔ Updated APP_VERSION={$tag} in .env"; + + // 7 ─ Bring back up + if ($inMaintenance) { + $this->run(PHP_BINARY . ' artisan up', $log); + $inMaintenance = false; + } + + // 8 ─ Persist log + UpdateLog::create([ + 'from_version' => $fromVersion, + 'to_version' => $tag, + 'method' => $method, + 'status' => 'success', + 'notes' => implode("\n", $log), + 'executed_by' => $userId, + ]); + + return ['success' => true, 'log' => $log]; + + } catch (\Throwable $e) { + // Always attempt to bring the site back up + if ($inMaintenance) { + try { + $this->run(PHP_BINARY . ' artisan up', $log); + } catch (\Throwable) { + $log[] = '⚠ Could not automatically bring the site back up — run `php artisan up` manually.'; + } + } + + $log[] = '✘ ERROR: ' . $this->sanitizeCommand($e->getMessage()); + + UpdateLog::create([ + 'from_version' => $fromVersion, + 'to_version' => $tag, + 'method' => $method, + 'status' => 'failed', + 'notes' => implode("\n", $log), + 'executed_by' => $userId, + ]); + + return ['success' => false, 'log' => $log, 'error' => $e->getMessage()]; + } + } + + // ─── Git Strategy ──────────────────────────────────────────────────────── + + private function applyViaGit(string $tag, array &$log): void + { + // Build the GitHub remote URL from configured owner/repo + $token = $this->githubToken; + $repoUrl = $token + ? "https://{$token}@github.com/{$this->owner}/{$this->repo}.git" + : "https://github.com/{$this->owner}/{$this->repo}.git"; + + // Silently remove the temporary remote if it already exists (ignore errors) + $this->runSilent('git remote remove nexus-update', $log); + + $this->run("git remote add nexus-update {$repoUrl}", $log); + $this->run('git stash', $log); + $this->run('git fetch nexus-update --tags --force', $log); + $this->run("git checkout tags/{$tag}", $log); + + // Clean up the temporary remote (ignore errors) + $this->runSilent('git remote remove nexus-update', $log); + } + + // ─── ZIP Strategy ──────────────────────────────────────────────────────── + + private function applyViaZip(string $url, string $tag, array &$log): void + { + if (!class_exists('ZipArchive')) { + throw new \RuntimeException('The PHP ZipArchive extension is required for ZIP-based updates.'); + } + + $log[] = "Downloading archive for {$tag}..."; + + $zipBytes = $this->http()->get($url)->body(); + + if (empty($zipBytes)) { + throw new \RuntimeException('Downloaded archive is empty. The GitHub token may be missing or the release URL is invalid.'); + } + + $tmpZip = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "nexuscms-update-{$tag}.zip"; + file_put_contents($tmpZip, $zipBytes); + $log[] = 'Archive saved to ' . $tmpZip; + + $tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "nexuscms-update-{$tag}"; + $zip = new \ZipArchive(); + + if ($zip->open($tmpZip) !== true) { + throw new \RuntimeException('Failed to open the downloaded ZIP archive.'); + } + + $zip->extractTo($tmpDir); + $zip->close(); + $log[] = 'Archive extracted.'; + + // GitHub ZIP has a single top-level directory: owner-repo-{sha}/ + $topDirs = glob($tmpDir . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR); + $sourceDir = !empty($topDirs) ? $topDirs[0] : $tmpDir; + + $log[] = 'Copying files to application root...'; + $this->copyDirectory($sourceDir, base_path(), $log); + + // Cleanup + @unlink($tmpZip); + $this->deleteDirectory($tmpDir); + + $log[] = 'Files applied.'; + } + + private function copyDirectory(string $source, string $dest, array &$log): void + { + $skipPaths = config('update.skip_paths', []); + + $iterator = new \RecursiveIteratorIterator( + new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS), + \RecursiveIteratorIterator::SELF_FIRST + ); + + foreach ($iterator as $item) { + $relative = ltrim(str_replace($source, '', $item->getPathname()), DIRECTORY_SEPARATOR . '/'); + + foreach ($skipPaths as $skip) { + $skip = ltrim(rtrim($skip, '/'), '/'); + if ($relative === $skip || str_starts_with($relative, $skip . DIRECTORY_SEPARATOR) || str_starts_with($relative, $skip . '/')) { + continue 2; + } + } + + $target = $dest . DIRECTORY_SEPARATOR . $relative; + + if ($item->isDir()) { + if (!is_dir($target)) { + mkdir($target, 0755, true); + } + } else { + copy($item->getPathname(), $target); + } + } + } + + private function deleteDirectory(string $dir): void + { + if (!is_dir($dir)) { + return; + } + + foreach (scandir($dir) as $entry) { + if ($entry === '.' || $entry === '..') { + continue; + } + + $path = $dir . DIRECTORY_SEPARATOR . $entry; + is_dir($path) ? $this->deleteDirectory($path) : @unlink($path); + } + + @rmdir($dir); + } + + // ─── Shell Execution ───────────────────────────────────────────────────── + + /** + * Sanitize a command string by masking any embedded GitHub token. + */ + private function sanitizeCommand(string $command): string + { + // Match: https://{token}@github.com/... or any token=xxx patterns + return preg_replace_callback( + '/(https?:\/\/)([a-zA-Z0-9_-]+)(@github\.com)/', + fn(array $m) => $m[1] . '****' . $m[3], + $command + ); + } + + private function run(string $command, array &$log): void + { + $base = base_path(); + + $wrapped = PHP_OS_FAMILY === 'Windows' + ? 'cd /d ' . escapeshellarg($base) . ' && ' . $command . ' 2>&1' + : 'cd ' . escapeshellarg($base) . ' && ' . $command . ' 2>&1'; + + $output = []; + $code = 0; + exec($wrapped, $output, $code); + + $log[] = '$ ' . $this->sanitizeCommand($command); + foreach ($output as $line) { + if (trim($line) !== '') { + $log[] = ' ' . $line; + } + } + + if ($code !== 0) { + throw new \RuntimeException( + "Command failed (exit {$code}): " . $this->sanitizeCommand($command) . "\n" . implode("\n", array_filter($output)) + ); + } + } + + // Same as run() but never throws — failures are logged as warnings only + private function runSilent(string $command, array &$log): void + { + try { + $this->run($command, $log); + } catch (\RuntimeException) { + // Intentionally ignored + } + } + + // ─── .env Version Update ───────────────────────────────────────────────── + + private function writeEnvVersion(string $tag): void + { + $envPath = base_path('.env'); + + if (!is_file($envPath) || !is_writable($envPath)) { + return; + } + + $version = ltrim($tag, 'v'); + $content = file_get_contents($envPath); + + if (str_contains($content, 'APP_VERSION=')) { + $content = preg_replace('/^APP_VERSION=.*/m', "APP_VERSION={$version}", $content); + } else { + $content .= "\nAPP_VERSION={$version}"; + } + + file_put_contents($envPath, $content); + } + + // ─── Update History ────────────────────────────────────────────────────── + + public function getHistory(int $limit = 15): \Illuminate\Database\Eloquent\Collection + { + return UpdateLog::with('executor') + ->latest() + ->limit($limit) + ->get(); + } +} diff --git a/app/Modules/Admin/module.json b/app/Modules/Admin/module.json new file mode 100644 index 0000000..5c63f21 --- /dev/null +++ b/app/Modules/Admin/module.json @@ -0,0 +1,9 @@ +{ + "name": "Admin", + "enabled": true, + "routes": true, + "migrations": false, + "views": true, + "translations": true, + "namespace": "Modules\\Admin" +} diff --git a/app/Modules/Armory/Admin/Controllers/ArmoryAdminController.php b/app/Modules/Armory/Admin/Controllers/ArmoryAdminController.php new file mode 100644 index 0000000..6f726db --- /dev/null +++ b/app/Modules/Armory/Admin/Controllers/ArmoryAdminController.php @@ -0,0 +1,14 @@ +prefix('acp/armory') + ->name('admin.armory.') + ->group(function () { + Route::get('/', [ArmoryAdminController::class, 'index'])->name('index'); + }); diff --git a/app/Modules/Armory/Admin/views/index.blade.php b/app/Modules/Armory/Admin/views/index.blade.php new file mode 100644 index 0000000..cbfbac5 --- /dev/null +++ b/app/Modules/Armory/Admin/views/index.blade.php @@ -0,0 +1,24 @@ +@extends('admin::layouts.app') + +@section('title', 'Armory Settings') + +@section('content') +
+

Armory

+
+ +
+
+

+ The Armory module reads character data directly from the game database via the + ArmoryRepositoryInterface. + No CMS-side records are stored. +

+
+ + To configure the game database connection, edit config/database.php + and set the characters / world connection credentials. +
+
+
+@endsection diff --git a/app/Interfaces/ArmoryRepositoryInterface.php b/app/Modules/Armory/Domain/Interfaces/ArmoryRepositoryInterface.php similarity index 92% rename from app/Interfaces/ArmoryRepositoryInterface.php rename to app/Modules/Armory/Domain/Interfaces/ArmoryRepositoryInterface.php index 92c4fac..671d54a 100644 --- a/app/Interfaces/ArmoryRepositoryInterface.php +++ b/app/Modules/Armory/Domain/Interfaces/ArmoryRepositoryInterface.php @@ -1,6 +1,6 @@ + */ + protected array $views = [ + 'index' => 'armory::index', + 'show' => 'armory::show', + ]; + + /** + * Armory repository instance. + * + * @var ArmoryRepositoryInterface + */ + protected ArmoryRepositoryInterface $armoryRepo; + + /** + * Wowhead parser service instance. + * + * @var WowheadParserService + */ + protected WowheadParserService $wowheadParser; + + /** + * Armory service instance. + * + * @var ArmoryService + */ + protected ArmoryService $armoryService; + + /** + * ArmoryController constructor. + * + * @param ArmoryRepositoryInterface $armoryRepo Armory repository instance. + * @param WowheadParserService $wowheadParser Wowhead parser service instance. + * @param ArmoryService $armoryService Armory service instance. + */ + public function __construct( + ArmoryRepositoryInterface $armoryRepo, + WowheadParserService $wowheadParser, + ArmoryService $armoryService + ) { + $this->armoryRepo = $armoryRepo; + $this->wowheadParser = $wowheadParser; + $this->armoryService = $armoryService; + } + + /** + * Display the character index page. + * + * @param Request $request Incoming request + * @return \Illuminate\View\View + */ + public function index(Request $request) + { + $q = $request->input('q'); + $faction = $request->input('faction') ?: null; + $realm = $request->input('realm') ?: false; + $class = $request->input('class') ?: null; + $minLevel = $request->input('min_level') ?: null; + + $request->merge(['realm' => $realm]); + + $characters = ($q || $faction || $class || $minLevel) + ? $this->armoryService->searchCharacters($q, $faction, $class, $minLevel) + : collect(); + + return view($this->views['index'], [ + 'data' => $characters, + 'search' => $q ?? '', + 'realm' => $realm, + ]); + } + + /** + * Display the character profile page. + * + * @param int $guid Character GUID + * @param Request $request Incoming request + * @param int|null $realm Realm ID (optional) + * @return \Illuminate\View\View + */ + public function show(int $guid, Request $request, ?int $realm = null) + { + $realm = $realm ?: $request->input('realm', 1); + $request->merge(['realm' => $realm]); + + $profile = $this->armoryService->getCharacterProfile($guid); + abort_if(empty($profile), 404); + + return view($this->views['show'], array_merge($profile, ['realm' => $realm])); + } +} \ No newline at end of file diff --git a/app/Modules/Armory/Http/Middleware/EnsureRealmsExist.php b/app/Modules/Armory/Http/Middleware/EnsureRealmsExist.php new file mode 100644 index 0000000..d97d766 --- /dev/null +++ b/app/Modules/Armory/Http/Middleware/EnsureRealmsExist.php @@ -0,0 +1,30 @@ +route('home'); + } + + if (!Realm::query()->exists()) { + return redirect()->route('home'); + } + } catch (\Throwable $e) { + return redirect()->route('home'); + } + + return $next($request); + } +} + diff --git a/app/Modules/Armory/Http/routes.php b/app/Modules/Armory/Http/routes.php new file mode 100644 index 0000000..1a553b8 --- /dev/null +++ b/app/Modules/Armory/Http/routes.php @@ -0,0 +1,10 @@ +prefix('armory')->name('armory.')->group(function () { + Route::get('/', [ArmoryController::class, 'index'])->name('index'); + Route::get('{id}', [ArmoryController::class, 'show'])->where('id', '[0-9]+')->name('show'); + Route::get('{id}/{realm?}', [ArmoryController::class, 'show'])->where('id', '[0-9]+')->where('realm', '[0-9]+')->name('show.realm'); +}); diff --git a/app/Repositories/Armory/TrinityCoreArmoryRepository.php b/app/Modules/Armory/Infrastructure/Repositories/TrinityCoreArmoryRepository.php similarity index 92% rename from app/Repositories/Armory/TrinityCoreArmoryRepository.php rename to app/Modules/Armory/Infrastructure/Repositories/TrinityCoreArmoryRepository.php index 37ddbb2..1bc0682 100644 --- a/app/Repositories/Armory/TrinityCoreArmoryRepository.php +++ b/app/Modules/Armory/Infrastructure/Repositories/TrinityCoreArmoryRepository.php @@ -1,8 +1,8 @@ getCharacters(); if (!$conn) return collect(); - return $conn->table('characters')->get(); + return $conn->table('characters') + ->select(['guid', 'name', 'race', 'class', 'level', 'gender', 'account']) + ->limit(500) + ->get(); } /** @@ -95,7 +98,8 @@ public function search(string $q, ?string $faction, ?string $class, ?int $minLev $conn = $this->getCharacters(); if (!$conn) return collect(); - $query = $conn->table('characters'); + $query = $conn->table('characters') + ->select(['guid', 'name', 'race', 'class', 'level', 'gender']); if ($q) { $query->where('name', 'like', "%{$q}%"); @@ -116,7 +120,9 @@ public function search(string $q, ?string $faction, ?string $class, ?int $minLev $query->where('level', '>=', $minLevel); } - return $query->orderByDesc('level')->get(); + return $query->orderByDesc('level') + ->limit(100) + ->get(); } /** diff --git a/app/Providers/ArmoryServiceProvider.php b/app/Modules/Armory/Providers/ArmoryServiceProvider.php similarity index 62% rename from app/Providers/ArmoryServiceProvider.php rename to app/Modules/Armory/Providers/ArmoryServiceProvider.php index b0abd4a..67460ef 100644 --- a/app/Providers/ArmoryServiceProvider.php +++ b/app/Modules/Armory/Providers/ArmoryServiceProvider.php @@ -1,18 +1,26 @@ app->make('router'); + $router->aliasMiddleware('realms.exists', EnsureRealmsExist::class); + } + public function register(): void { $this->app->bind(ArmoryRepositoryInterface::class, function ($app) { @@ -20,6 +28,7 @@ public function register(): void $realmId = $request->get('realm', 1); $realm = Realm::find($realmId); + if (!$realm) { throw new \Exception("Realm $realmId not found."); } @@ -32,20 +41,12 @@ public function register(): void 'world_database' => json_decode($realm->world_database, true), ]; - $emulatorEnum = Emulator::from($realm->emulator); // lanza excepción si no existe + $emulatorEnum = Emulator::from($realm->emulator); return match ($emulatorEnum) { - Emulator::TRINITYCORE => new TrinityCoreArmoryRepository($realmConfig), + Emulator::TRINITYCORE => new TrinityCoreArmoryRepository($realmConfig), default => throw new \Exception("Unsupported emulator: $emulator") }; }); - } - - /** - * Bootstrap services. - */ - public function boot(): void - { - // - } + } } diff --git a/resources/views/armory/index.blade.php b/app/Modules/Armory/Resources/views/index.blade.php similarity index 98% rename from resources/views/armory/index.blade.php rename to app/Modules/Armory/Resources/views/index.blade.php index 5491a1e..5a4801f 100644 --- a/resources/views/armory/index.blade.php +++ b/app/Modules/Armory/Resources/views/index.blade.php @@ -12,7 +12,7 @@ -
+
@@ -76,7 +76,7 @@ class="w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 h
-
+
@@ -163,4 +163,4 @@ class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 rounded-lg font-medi @endif @endif
-@endsection +@endsection \ No newline at end of file diff --git a/resources/views/armory/partials/achievements.blade.php b/app/Modules/Armory/Resources/views/partials/achievements.blade.php similarity index 96% rename from resources/views/armory/partials/achievements.blade.php rename to app/Modules/Armory/Resources/views/partials/achievements.blade.php index 8965776..b594c14 100644 --- a/resources/views/armory/partials/achievements.blade.php +++ b/app/Modules/Armory/Resources/views/partials/achievements.blade.php @@ -1,6 +1,5 @@ + \ No newline at end of file diff --git a/resources/views/armory/partials/professions.blade.php b/app/Modules/Armory/Resources/views/partials/professions.blade.php similarity index 97% rename from resources/views/armory/partials/professions.blade.php rename to app/Modules/Armory/Resources/views/partials/professions.blade.php index 8c88901..eaaf201 100644 --- a/resources/views/armory/partials/professions.blade.php +++ b/app/Modules/Armory/Resources/views/partials/professions.blade.php @@ -1,6 +1,5 @@ +}
@@ -81,9 +81,9 @@
- @include('armory.partials.equipment', ['item' => $items ?? collect()]) - @include('armory.partials.achievements', ['achievements' => $achievement ?? collect()]) - @include('armory.partials.professions', ['skill' => $skill ?? collect()]) + @include('armory::partials.equipment', ['item' => $items ?? collect()]) + @include('armory::partials.achievements', ['achievements' => $achievement ?? collect()]) + @include('armory::partials.professions', ['skill' => $skill ?? collect()]) + +@endsection + diff --git a/app/Modules/Donate/Resources/views/home.blade.php b/app/Modules/Donate/Resources/views/home.blade.php new file mode 100644 index 0000000..f58cfdd --- /dev/null +++ b/app/Modules/Donate/Resources/views/home.blade.php @@ -0,0 +1,233 @@ +@extends('layouts.main') + +@section('title', 'Donate') + +@section('content') + +
+
+

+ Support NexusCMS +

+

+ Your donations help us maintain high-quality servers, develop custom content, and keep the community thriving. Every contribution makes a difference. +

+
+
+ + +
+
+

Donation Packages

+

Choose a package that suits you best

+
+ +
+ @foreach(($plans ?? collect())->take(3) as $plan) +
+
+
+ +
+

{{ $plan->name }}

+
{{ $plan->formatted_amount }}
+

{{ $plan->description }}

+ @if($plan->is_promo) + + PROMO +{{ $plan->extra_pct }}% + + @endif +
+
    +
  • + + {{ number_format($plan->dp_base) }} Donation Points +
  • + @if($plan->extra_pct > 0) +
  • + + +{{ $plan->extra_pct }}% Bonus Points +
  • + @endif +
+ @auth +
+ @csrf + + + + +
+ @else + + Login to Donate + + @endauth +
+ @endforeach +
+ + + @if(($plans ?? collect())->count() > 3) +
+

More Packages

+
+ @foreach(($plans ?? collect())->skip(3) as $plan) +
+
+

{{ $plan->name }}

+
{{ $plan->formatted_amount }}
+ @if($plan->is_promo) + + PROMO +{{ $plan->extra_pct }}% + + @endif +
+
+ {{ number_format($plan->dp_base) }} DP +
+ @auth +
+ @csrf + + + + +
+ @else + + Login + + @endauth +
+ @endforeach +
+
+ @endif + + +
+
+

Custom Donation Amount

+

Choose your own amount to support the server

+ @auth +
+ @csrf +
+ $ + +
+
+ +
+ +
+ @else +
+
+ $ + +
+
+ +
+ + Login to Donate + +
+ @endauth +

Conversion rate: $1 = {{ config('donate.dp_rate') }} Donation Points

+
+
+ + +
+
+

What Can You Buy?

+

Spend your donation points on exclusive items and services

+
+ +
+ @forelse(($storeProducts ?? collect()) as $product) +
+

{{ $product->name }}

+

{{ $product->description ?? '—' }}

+
+ {{ number_format($product->cost) }} DP + View +
+
+ @empty +
+ No store products available right now. +
+ @endforelse +
+ + +
+ + +
+

Donation FAQ

+
+
+

+ + How do I receive my donation points? +

+

Donation points are automatically added to your account within 5 minutes after a successful payment.

+
+
+

+ + What payment methods do you accept? +

+

We accept PayPal, credit cards, and various cryptocurrency options for your convenience.

+
+
+

+ + Can I get a refund? +

+

Donations are generally non-refundable. However, if you encounter technical issues, please contact our support team.

+
+
+

+ + Are donations required to play? +

+

Absolutely not! NexusCMS is completely free to play. Donations help us improve the server but are entirely optional.

+
+
+
+
+ + +
+
+ +

Thank You for Your Support!

+

+ Every donation, no matter the size, helps us maintain our servers, develop new content, and create the best possible experience for our community. We couldn't do this without supporters like you. +

+
+
+@endsection \ No newline at end of file diff --git a/app/Modules/Donate/Resources/views/receipt-pdf.blade.php b/app/Modules/Donate/Resources/views/receipt-pdf.blade.php new file mode 100644 index 0000000..e680513 --- /dev/null +++ b/app/Modules/Donate/Resources/views/receipt-pdf.blade.php @@ -0,0 +1,73 @@ + + + + + Donation Receipt #{{ $tx->id }} + + + +
+

Donation Receipt

+

{{ config('app.name', 'NexusCMS') }} · Generated {{ now()->format('Y-m-d H:i') }} UTC

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Receipt ID#{{ $tx->id }}
Date{{ $tx->created_at->format('Y-m-d H:i:s') }}
Donor{{ $tx->user?->name ?? 'N/A' }} ({{ $tx->user?->email ?? '—' }})
Gateway{{ ucfirst($tx->gateway) }}
Gateway Transaction ID{{ $tx->transaction_id ?? 'N/A' }}
Amount${{ number_format((float) $tx->amount, 2) }} {{ $tx->currency }}
Donation Points Awarded{{ number_format((int) $tx->dp_awarded) }} DP
Status + {{ ucfirst($tx->status) }} +
+ + + + diff --git a/app/Modules/Donate/Resources/views/receipt.blade.php b/app/Modules/Donate/Resources/views/receipt.blade.php new file mode 100644 index 0000000..baf4442 --- /dev/null +++ b/app/Modules/Donate/Resources/views/receipt.blade.php @@ -0,0 +1,61 @@ +@extends('layouts.main') + +@section('title', 'Donation Receipt') + +@section('content') +
+
+
+

Donation Receipt

+
+ + Download PDF + + +
+
+
+
+
Receipt ID
+
{{ $tx->id }}
+
+
+
Date
+
{{ $tx->created_at }}
+
+
+
Gateway
+
{{ $tx->gateway }}
+
+
+
Transaction ID
+
{{ $tx->transaction_id ?? 'N/A' }}
+
+
+
Amount
+
${{ $tx->amount }} {{ $tx->currency }}
+
+
+
DP Awarded
+
{{ number_format($tx->dp_awarded) }}
+
+
+
Status
+
{{ ucfirst($tx->status) }}
+
+
+
User
+
{{ Auth::user()->name }}
+
+
+
+ Keep this receipt as proof of your donation. Thank you for your support. +
+
+
+@endsection + diff --git a/app/Modules/Donate/Services/GatewayManager.php b/app/Modules/Donate/Services/GatewayManager.php new file mode 100644 index 0000000..b10e4c5 --- /dev/null +++ b/app/Modules/Donate/Services/GatewayManager.php @@ -0,0 +1,34 @@ +register($gateway); + } + } + + public function register(PaymentGatewayInterface $gateway): void + { + $this->gateways[$gateway->id()] = $gateway; + } + + public function all(): array + { + return $this->gateways; + } + + public function get(string $id): ?PaymentGatewayInterface + { + return Arr::get($this->gateways, $id); + } +} + diff --git a/app/Modules/Donate/module.json b/app/Modules/Donate/module.json new file mode 100644 index 0000000..b1d0b0e --- /dev/null +++ b/app/Modules/Donate/module.json @@ -0,0 +1,16 @@ +{ + "name": "Donate", + "enabled": true, + "routes": true, + "migrations": true, + "views": true, + "namespace": "Modules\\Donate", + "module_type": "core", + "admin_crud": "custom", + "admin_menu": { + "label": "Donations", + "icon": "fas fa-donate", + "route": "admin.donate.plans.index", + "order": 20 + } +} diff --git a/app/Modules/Example/Admin/Controllers/ExampleAdminController.php b/app/Modules/Example/Admin/Controllers/ExampleAdminController.php new file mode 100644 index 0000000..722e7e1 --- /dev/null +++ b/app/Modules/Example/Admin/Controllers/ExampleAdminController.php @@ -0,0 +1,13 @@ +prefix('acp/example') + ->name('admin.example.') + ->group(function () { + Route::get('/', [ExampleAdminController::class, 'index'])->name('index'); + }); diff --git a/app/Modules/Example/Admin/views/index.blade.php b/app/Modules/Example/Admin/views/index.blade.php new file mode 100644 index 0000000..8bb7856 --- /dev/null +++ b/app/Modules/Example/Admin/views/index.blade.php @@ -0,0 +1,17 @@ +@extends('admin::layouts.app') + +@section('title', 'Example Module') + +@section('content') +
+

Example Module — Admin

+
+ +
+
+

+ This is the custom admin view for the Example module (Modo B — Custom Views). +

+
+
+@endsection diff --git a/app/Modules/Example/Http/Controllers/ExampleController.php b/app/Modules/Example/Http/Controllers/ExampleController.php new file mode 100644 index 0000000..9be90e6 --- /dev/null +++ b/app/Modules/Example/Http/Controllers/ExampleController.php @@ -0,0 +1,13 @@ +json(['message' => 'Módulo Example funcionando']); + } +} diff --git a/app/Modules/Example/Http/routes.php b/app/Modules/Example/Http/routes.php new file mode 100644 index 0000000..72224e7 --- /dev/null +++ b/app/Modules/Example/Http/routes.php @@ -0,0 +1,6 @@ +with('parent') + ->orderBy('order') + ->get(); + + return view('forum-admin::index', compact('forums')); + } + + public function create(): View + { + $categories = Forum::query() + ->whereNull('parent_id') + ->orderBy('order') + ->get(); + + return view('forum-admin::create', compact('categories')); + } + + public function store(Request $request): RedirectResponse + { + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'description' => ['nullable', 'string'], + 'slug' => ['required', 'string', 'max:255', 'unique:forums,slug'], + 'parent_id' => ['nullable', 'integer', 'exists:forums,id'], + 'order' => ['nullable', 'integer', 'min:0'], + 'is_category' => ['boolean'], + ]); + + $validated['is_category'] = $request->boolean('is_category'); + $validated['order'] = (int) ($validated['order'] ?? 0); + + Forum::query()->create($validated); + + return redirect() + ->route('admin.forum.index') + ->with('success', 'Forum created successfully.'); + } + + public function edit(Forum $forum): View + { + $categories = Forum::query() + ->whereNull('parent_id') + ->where('id', '!=', $forum->id) + ->orderBy('order') + ->get(); + + return view('forum-admin::edit', compact('forum', 'categories')); + } + + public function update(Request $request, Forum $forum): RedirectResponse + { + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'description' => ['nullable', 'string'], + 'slug' => ['required', 'string', 'max:255', 'unique:forums,slug,' . $forum->id], + 'parent_id' => ['nullable', 'integer', 'exists:forums,id'], + 'order' => ['nullable', 'integer', 'min:0'], + 'is_category' => ['boolean'], + ]); + + $validated['is_category'] = $request->boolean('is_category'); + $validated['order'] = (int) ($validated['order'] ?? 0); + + $forum->update($validated); + + return redirect() + ->route('admin.forum.index') + ->with('success', 'Forum updated successfully.'); + } + + public function destroy(Forum $forum): RedirectResponse + { + if ($forum->threads()->exists()) { + return redirect() + ->route('admin.forum.index') + ->with('error', 'Cannot delete a forum that has threads.'); + } + + if ($forum->subforums()->exists()) { + return redirect() + ->route('admin.forum.index') + ->with('error', 'Cannot delete a forum that has sub-forums.'); + } + + $forum->delete(); + + return redirect() + ->route('admin.forum.index') + ->with('success', 'Forum deleted.'); + } +} diff --git a/app/Modules/Forum/Admin/Views/_form.blade.php b/app/Modules/Forum/Admin/Views/_form.blade.php new file mode 100644 index 0000000..97f4749 --- /dev/null +++ b/app/Modules/Forum/Admin/Views/_form.blade.php @@ -0,0 +1,57 @@ +@php $isEdit = isset($forum) && $forum !== null; @endphp + +@if($errors->any()) +
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+@endif + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + is_category)) + class="h-4 w-4 text-blue-600 border-gray-300 rounded"> + +
+
diff --git a/app/Modules/Forum/Admin/Views/create.blade.php b/app/Modules/Forum/Admin/Views/create.blade.php new file mode 100644 index 0000000..65dc482 --- /dev/null +++ b/app/Modules/Forum/Admin/Views/create.blade.php @@ -0,0 +1,27 @@ +@extends('admin::layouts.app') + +@section('title', 'Create Forum') + +@section('content') +
+

Create Forum

+ + Back + +
+ +
+
+
+ @csrf + @include('forum-admin::_form', ['forum' => null, 'categories' => $categories]) +
+ +
+
+
+
+@endsection diff --git a/app/Modules/Forum/Admin/Views/edit.blade.php b/app/Modules/Forum/Admin/Views/edit.blade.php new file mode 100644 index 0000000..34e7746 --- /dev/null +++ b/app/Modules/Forum/Admin/Views/edit.blade.php @@ -0,0 +1,27 @@ +@extends('admin::layouts.app') + +@section('title', 'Edit Forum') + +@section('content') +
+

Edit Forum — {{ $forum->name }}

+ + Back + +
+ +
+
+
+ @csrf @method('PUT') + @include('forum-admin::_form', ['forum' => $forum, 'categories' => $categories]) +
+ +
+
+
+
+@endsection diff --git a/app/Modules/Forum/Admin/Views/index.blade.php b/app/Modules/Forum/Admin/Views/index.blade.php new file mode 100644 index 0000000..17aaa7c --- /dev/null +++ b/app/Modules/Forum/Admin/Views/index.blade.php @@ -0,0 +1,71 @@ +@extends('admin::layouts.app') + +@section('title', 'Forum Management') + +@section('content') +
+

Forum Management

+ + New Forum + +
+ +
+ @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @if(session('error')) +
+ {{ session('error') }} +
+ @endif + +
+ + + + + + + + + + + + + @forelse($forums as $forum) + + + + + + + + + @empty + + + + @endforelse + +
NameSlugParentTypeOrderActions
{{ $forum->name }}{{ $forum->slug }}{{ $forum->parent?->name ?? '—' }} + @if($forum->is_category) + Category + @else + Forum + @endif + {{ $forum->order }} + Edit +
+ @csrf @method('DELETE') + +
+
No forums yet.
+
+
+@endsection diff --git a/app/Modules/Forum/Admin/routes.php b/app/Modules/Forum/Admin/routes.php new file mode 100644 index 0000000..3379cd4 --- /dev/null +++ b/app/Modules/Forum/Admin/routes.php @@ -0,0 +1,16 @@ +prefix('acp/forum') + ->name('admin.forum.') + ->group(function () { + Route::get('/', [ForumAdminController::class, 'index'])->name('index'); + Route::get('/create', [ForumAdminController::class, 'create'])->name('create'); + Route::post('/', [ForumAdminController::class, 'store'])->name('store'); + Route::get('/{forum}/edit', [ForumAdminController::class, 'edit'])->name('edit'); + Route::put('/{forum}', [ForumAdminController::class, 'update'])->name('update'); + Route::delete('/{forum}', [ForumAdminController::class, 'destroy'])->name('destroy'); + }); diff --git a/app/Models/Forum.php b/app/Modules/Forum/Domain/Models/Forum.php old mode 100755 new mode 100644 similarity index 76% rename from app/Models/Forum.php rename to app/Modules/Forum/Domain/Models/Forum.php index 5df523d..88f87d6 --- a/app/Models/Forum.php +++ b/app/Modules/Forum/Domain/Models/Forum.php @@ -1,10 +1,11 @@ hasMany(Thread::class); } - /** - * Get the parent forum if this is a subforum - */ + public function posts(): HasManyThrough + { + return $this->hasManyThrough(Post::class, Thread::class); + } + public function parent(): BelongsTo { return $this->belongsTo(Forum::class, 'parent_id'); } - /** - * Get all subforums for this forum - */ public function subforums(): HasMany { return $this->hasMany(Forum::class, 'parent_id'); } - /** - * Get the latest thread in this forum - */ public function latestThread(): BelongsTo { return $this->belongsTo(Thread::class, 'latest_thread_id'); } -} \ No newline at end of file +} diff --git a/app/Models/Post.php b/app/Modules/Forum/Domain/Models/Post.php old mode 100755 new mode 100644 similarity index 91% rename from app/Models/Post.php rename to app/Modules/Forum/Domain/Models/Post.php index 4655465..974cbd1 --- a/app/Models/Post.php +++ b/app/Modules/Forum/Domain/Models/Post.php @@ -1,7 +1,8 @@ 'forum::index', + 'forum' => 'forum::show', + 'thread' => 'forum::thread', + 'create_thread' => 'forum::create-thread', + ]; + + public function __construct(ForumService $forumService) + { + $this->forumService = $forumService; + } + + public function index(): View + { + $categories = $this->forumService->getCategories(); + + return view($this->views['index'], compact('categories')); + } + + public function forum(string $slug): View + { + $data = $this->forumService->getForumWithThreads($slug); + + return view($this->views['forum'], $data); + } + + public function thread(string $forumSlug, string $threadSlug): View + { + $data = $this->forumService->getThreadWithPosts($forumSlug, $threadSlug); + + return view($this->views['thread'], $data); + } + + public function createThread(string $slug): View + { + $forum = Forum::where('slug', $slug)->firstOrFail(); + + return view($this->views['create_thread'], compact('forum')); + } + + public function storeThread(Request $request, string $slug) + { + $forum = Forum::where('slug', $slug)->where('is_category', false)->firstOrFail(); + + $validated = $request->validate([ + 'title' => 'required|min:3|max:255', + 'content' => 'required|min:10', + ]); + + $threadSlug = $this->forumService->createThread($forum, $validated); + + return redirect()->route('forum.thread', [ + 'forumSlug' => $forum->slug, + 'threadSlug' => $threadSlug, + ])->with('success', 'Thread created successfully!'); + } + + public function storeReply(Request $request, string $forumSlug, string $threadSlug) + { + $data = $this->forumService->getThreadWithPosts($forumSlug, $threadSlug); + + $validated = $request->validate([ + 'content' => 'required|min:2', + ]); + + $this->forumService->createPost($data['thread'], $validated); + + return redirect()->route('forum.thread', [ + 'forumSlug' => $forumSlug, + 'threadSlug' => $threadSlug, + ])->with('success', 'Reply posted!'); + } +} diff --git a/app/Modules/Forum/Http/routes.php b/app/Modules/Forum/Http/routes.php new file mode 100644 index 0000000..5672599 --- /dev/null +++ b/app/Modules/Forum/Http/routes.php @@ -0,0 +1,16 @@ +prefix('forum') + ->name('forum.') + ->group(function () { + Route::get('/', [ForumController::class, 'index'])->name('index'); + Route::get('/{slug}', [ForumController::class, 'forum'])->name('show'); + Route::get('/{slug}/create', [ForumController::class, 'createThread'])->name('create-thread')->middleware('auth'); + Route::post('/{slug}/create', [ForumController::class, 'storeThread'])->name('store-thread')->middleware('auth'); + Route::get('/{forumSlug}/{threadSlug}', [ForumController::class, 'thread'])->name('thread'); + Route::post('/{forumSlug}/{threadSlug}/reply', [ForumController::class, 'storeReply'])->name('store-reply')->middleware('auth'); + }); \ No newline at end of file diff --git a/app/Modules/Forum/Providers/ForumServiceProvider.php b/app/Modules/Forum/Providers/ForumServiceProvider.php new file mode 100644 index 0000000..a1d60f6 --- /dev/null +++ b/app/Modules/Forum/Providers/ForumServiceProvider.php @@ -0,0 +1,10 @@ +name) + +@section('content') +
+
+
+ +

Start a new thread

+

Posting in {{ $forum->name }}

+
+
+ +
+ @if($errors->any()) +
+ +
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ @csrf +
+
+ + + @error('title') +

{{ $message }}

+ @enderror +
+
+ + + @error('content') +

{{ $message }}

+ @enderror +
+
+
+ + Cancel + + +
+
+
+

+ Posting Guidelines +

+
    +
  • Be respectful and constructive.
  • +
  • Search before posting to avoid duplicates.
  • +
  • Use a clear, descriptive title.
  • +
  • Do not share personal information or violate privacy.
  • +
+
+
+
+@endsection diff --git a/app/Modules/Forum/Resources/views/index.blade.php b/app/Modules/Forum/Resources/views/index.blade.php new file mode 100644 index 0000000..003d515 --- /dev/null +++ b/app/Modules/Forum/Resources/views/index.blade.php @@ -0,0 +1,113 @@ +@extends('layouts.main') + +@section('title', 'Community Forums') + +@php + $categoryColors = ['indigo','sky','emerald','amber','rose','violet','teal','orange']; +@endphp + +@section('content') +
+
+
+
+ {{-- Breadcrumb --}} + +

Community Forums

+

Discussions, announcements & support

+
+
+ +
+
+
+ +
+ @forelse($categories as $i => $category) + @php $color = $categoryColors[$i % count($categoryColors)]; @endphp +
+ +
+ +

{{ $category->name }}

+ {{ $category->subforums->count() }} {{ Str::plural('section', $category->subforums->count()) }} +
+ + @forelse($category->subforums as $forum) +
+
+ +
+
+ + {{ $forum->name }} + + @if($forum->description) +

{{ $forum->description }}

+ @endif +
+ + +
+ @empty +
No forums in this category yet.
+ @endforelse +
+ @empty +
+ +

No forums available yet.

+
+ @endforelse + +
+ + + {{ number_format(App\Models\User::count()) }} members + + · + + + {{ number_format(\Modules\Forum\Domain\Models\Thread::count()) }} threads + + · + + + {{ number_format(\Modules\Forum\Domain\Models\Post::count()) }} posts + +
+
+
+@endsection diff --git a/app/Modules/Forum/Resources/views/show.blade.php b/app/Modules/Forum/Resources/views/show.blade.php new file mode 100644 index 0000000..de18b4b --- /dev/null +++ b/app/Modules/Forum/Resources/views/show.blade.php @@ -0,0 +1,154 @@ +@extends('layouts.main') + +@section('title', $forum->name) + +@section('content') +
+
+
+ +
+
+

{{ $forum->name }}

+ @if($forum->description) +

{{ $forum->description }}

+ @endif +
+ @auth + + + New Thread + + @endauth +
+
+
+ +
+ @if($forum->subforums->isNotEmpty()) + + @endif + + @if($threads->isEmpty()) +
+ +

No threads yet.

+ @auth + + Start the first thread + + @else +

Log in to create a thread.

+ @endauth +
+ @else + + + +
+ @foreach($threads as $thread) +
+
+ @if($thread->is_sticky) + + @elseif($thread->is_locked) + + @else + + @endif +
+ +
+
+ @if($thread->is_sticky) + + Pinned + + @endif + @if($thread->is_locked) + + Locked + + @endif + + {{ $thread->title }} + +
+
+ {{ $thread->user->name ?? '' }} + + by {{ $thread->user->name ?? 'Unknown' }} + · {{ $thread->created_at->diffForHumans() }} + +
+
+ + + + +
+ @endforeach +
+ + @if($threads->hasPages()) +
+ {{ $threads->links() }} +
+ @endif + @endif +
+
+@endsection diff --git a/app/Modules/Forum/Resources/views/thread.blade.php b/app/Modules/Forum/Resources/views/thread.blade.php new file mode 100644 index 0000000..9ea210e --- /dev/null +++ b/app/Modules/Forum/Resources/views/thread.blade.php @@ -0,0 +1,176 @@ +@extends('layouts.main') + +@section('title', $thread->title) + +@section('content') +
+
+
+ + +
+
+
+ @if($thread->is_sticky) + + Pinned + + @endif + @if($thread->is_locked) + + Locked + + @endif +
+

{{ $thread->title }}

+

+ {{ $posts->total() }} {{ Str::plural('post', $posts->total()) }} + · {{ number_format($thread->view_count) }} views +

+
+ @if($posts->currentPage() === $posts->lastPage() && !$thread->is_locked) + @auth + + Reply + + @endauth + @endif +
+
+
+ + @if(session('success')) +
+
+ + {{ session('success') }} +
+
+ @endif + +
+ + @foreach($posts as $post) + @php $isOP = $post->is_first_post; @endphp +
+
+ {{ $post->user->name ?? '' }} +
+

{{ $post->user->name ?? 'Deleted user' }}

+ @if($post->user && $post->user->roles->isNotEmpty()) + + {{ $post->user->roles->first()->name }} + + @elseif($isOP) + + Author + + @endif +
+ @if($post->user) +
+

Joined {{ $post->user->created_at->format('M Y') }}

+
+ @endif +
+ #{{ ($posts->currentPage() - 1) * $posts->perPage() + $loop->iteration }} +
+
+ +
+
+ + + {{ $post->created_at->format('M j, Y \a\t g:i A') }} + @if($post->updated_at->ne($post->created_at)) + (edited {{ $post->updated_at->diffForHumans() }}) + @endif + + @auth + @if(!$thread->is_locked) + + @endif + @endauth +
+
+ {!! nl2br(e($post->content)) !!} +
+
+
+ @endforeach + + @if($posts->hasPages()) +
+ {{ $posts->links() }} +
+ @endif + + @if($thread->is_locked) +
+ +

This thread is locked. No new replies can be posted.

+
+ @else + @auth +
+
+ {{ Auth::user()->name }} + {{ Auth::user()->name }} + — Post a reply +
+
+ @csrf + + @error('content') +

{{ $message }}

+ @enderror +
+ +
+
+
+ @else +
+

+ Log in + or register to reply. +

+
+ @endauth + @endif +
+
+@endsection diff --git a/app/Services/ForumService.php b/app/Modules/Forum/Services/ForumService.php similarity index 86% rename from app/Services/ForumService.php rename to app/Modules/Forum/Services/ForumService.php index 9ceec55..653ff36 100644 --- a/app/Services/ForumService.php +++ b/app/Modules/Forum/Services/ForumService.php @@ -1,10 +1,10 @@ orderBy('order') ->with(['subforums' => function ($query) { - $query->orderBy('order'); + $query->orderBy('order') + ->withCount('threads') + ->with(['latestThread' => function ($q) { + $q->with('user')->select('id', 'title', 'slug', 'forum_id', 'user_id', 'updated_at'); + }]); }]) ->get(); } @@ -44,16 +48,17 @@ public function getCategories() public function getForumWithThreads(string $slug) { $forum = Forum::where('slug', $slug) - ->with(['subforums' => function ($query) { - $query->orderBy('order'); + ->with(['parent', 'subforums' => function ($query) { + $query->orderBy('order')->withCount('threads'); }]) ->firstOrFail(); $threads = Thread::where('forum_id', $forum->id) ->orderBy('is_sticky', 'desc') - ->orderBy('created_at', 'desc') + ->orderBy('updated_at', 'desc') + ->withCount('posts') ->with(['user', 'latestPost.user']) - ->paginate(20); + ->paginate(25); return compact('forum', 'threads'); } diff --git a/app/Modules/Forum/module.json b/app/Modules/Forum/module.json new file mode 100644 index 0000000..e43abf7 --- /dev/null +++ b/app/Modules/Forum/module.json @@ -0,0 +1,15 @@ +{ + "name": "Forum", + "enabled": true, + "routes": true, + "migrations": true, + "views": true, + "namespace": "Modules\\Forum", + "admin_crud": "custom", + "admin_menu": { + "label": "Forum", + "icon": "fas fa-comments", + "route": "admin.forum.index", + "order": 30 + } +} diff --git a/app/Modules/Store/Admin/Controllers/StoreAdminController.php b/app/Modules/Store/Admin/Controllers/StoreAdminController.php new file mode 100644 index 0000000..bba86d3 --- /dev/null +++ b/app/Modules/Store/Admin/Controllers/StoreAdminController.php @@ -0,0 +1,53 @@ + [ + 'name' => 'Character Rename', + 'description' => 'Forces a character rename on next login.', + 'cost' => 600, + 'requires_character' => true, + ], + 'customize' => [ + 'name' => 'Character Customize', + 'description' => 'Unlocks appearance customization on next login.', + 'cost' => 800, + 'requires_character' => true, + ], + 'race_change' => [ + 'name' => 'Race Change', + 'description' => 'Unlocks race change on next login.', + 'cost' => 1200, + 'requires_character' => true, + ], + 'faction_change' => [ + 'name' => 'Faction Change', + 'description' => 'Unlocks faction change on next login.', + 'cost' => 1500, + 'requires_character' => true, + ], + 'starter_mail' => [ + 'name' => 'Starter Mail Pack', + 'description' => 'Sends a starter pack by in-game mail.', + 'cost' => 500, + 'requires_character' => true, + ], + ]; + + public function index(): View + { + $realms = Realm::query()->orderBy('name')->get(); + + return view('store-admin::index', [ + 'products' => $this->products, + 'realms' => $realms, + ]); + } +} diff --git a/app/Modules/Store/Admin/Views/index.blade.php b/app/Modules/Store/Admin/Views/index.blade.php new file mode 100644 index 0000000..154a88c --- /dev/null +++ b/app/Modules/Store/Admin/Views/index.blade.php @@ -0,0 +1,72 @@ +@extends('admin::layouts.app') + +@section('title', 'Store Overview') + +@section('content') +
+

Store — Products

+
+ +
+
+ + Products are currently defined in code (StoreController::getProducts()). + Edit the source file to add, remove or change costs. +
+ +
+ + + + + + + + + + + + @foreach($products as $key => $product) + + + + + + + + @endforeach + +
KeyNameDescriptionCost (DP)Needs Character
{{ $key }}{{ $product['name'] }}{{ $product['description'] }}{{ number_format($product['cost']) }} + @if($product['requires_character'] ?? false) + Yes + @else + + @endif +
+
+ + @if($realms->isNotEmpty()) +

Configured Realms

+
+ + + + + + + + + + @foreach($realms as $realm) + + + + + + @endforeach + +
RealmHostConsole Port
{{ $realm->name }}{{ $realm->console_hostname }}{{ $realm->console_port }}
+
+ @endif +
+@endsection diff --git a/app/Modules/Store/Admin/routes.php b/app/Modules/Store/Admin/routes.php new file mode 100644 index 0000000..6e17a4a --- /dev/null +++ b/app/Modules/Store/Admin/routes.php @@ -0,0 +1,11 @@ +prefix('acp/store') + ->name('admin.store.') + ->group(function () { + Route::get('/', [StoreAdminController::class, 'index'])->name('index'); + }); diff --git a/app/Modules/Store/Domain/Models/StoreProduct.php b/app/Modules/Store/Domain/Models/StoreProduct.php new file mode 100644 index 0000000..dcf9474 --- /dev/null +++ b/app/Modules/Store/Domain/Models/StoreProduct.php @@ -0,0 +1,28 @@ + 'boolean', + 'active' => 'boolean', + 'cost' => 'integer', + 'sort_order' => 'integer', + ]; +} diff --git a/app/Modules/Store/Http/Controllers/StoreController.php b/app/Modules/Store/Http/Controllers/StoreController.php new file mode 100644 index 0000000..2a3884d --- /dev/null +++ b/app/Modules/Store/Http/Controllers/StoreController.php @@ -0,0 +1,174 @@ +user(); + + $linkedAccounts = AccountLinked::query() + ->with('realm') + ->where('user_id', $user->id) + ->get() + ->filter(static fn (AccountLinked $link) => $link->realm !== null) + ->values(); + + return view('store::store', [ + 'products' => $this->getProducts(), + 'linkedAccounts' => $linkedAccounts, + 'balance' => (int) $user->dp, + ]); + } + + public function purchase(Request $request): RedirectResponse + { + $validated = $request->validate([ + 'product' => ['required', 'string'], + 'realm_id' => ['required', 'integer', 'exists:realms,id'], + 'character_name' => ['nullable', 'string', 'min:2', 'max:12'], + ]); + + $products = $this->getProducts(); + $productKey = $validated['product']; + + if (!isset($products[$productKey])) { + return back()->with('error', 'Selected product is invalid.'); + } + + $product = $products[$productKey]; + $realmId = (int) $validated['realm_id']; + $characterName = trim((string) ($validated['character_name'] ?? '')); + $user = $request->user(); + + $link = AccountLinked::query() + ->where('user_id', $user->id) + ->where('realm_id', $realmId) + ->first(); + + if (!$link) { + return back()->with('error', 'You do not have a linked game account for the selected realm.'); + } + + if (($product['requires_character'] ?? false) && $characterName === '') { + return back()->with('error', 'This product requires a character name.'); + } + + $realm = Realm::query()->find($realmId); + if (!$realm) { + return back()->with('error', 'Selected realm was not found.'); + } + + try { + $soap = new SoapAccountCreator( + (string) $realm->console_hostname, + (int) $realm->console_port, + (string) $realm->console_username, + (string) $realm->console_password, + (string) $realm->console_urn, + false + ); + + $response = $this->executeProduct($soap, $product, $characterName); + + if ($this->responseHasError($response)) { + throw new \RuntimeException($response); + } + + DB::transaction(static function () use ($user, $product): void { + $freshUser = User::query()->lockForUpdate()->findOrFail($user->id); + $cost = (int) $product['cost']; + + if ((int) $freshUser->dp < $cost) { + throw new \RuntimeException('Not enough donation points for this purchase.'); + } + + $freshUser->dp = (int) $freshUser->dp - $cost; + $freshUser->save(); + }); + + return back()->with('success', 'Purchase completed successfully. Server response: ' . $response); + } catch (\Throwable $exception) { + return back()->with('error', 'Purchase failed: ' . $exception->getMessage()); + } + } + + /** + * @return array> + */ + private function getProducts(): array + { + return [ + 'rename' => [ + 'name' => 'Character Rename', + 'description' => 'Forces a character rename on next login.', + 'cost' => 600, + 'requires_character' => true, + 'type' => 'character_rename', + ], + 'customize' => [ + 'name' => 'Character Customize', + 'description' => 'Unlocks appearance customization on next login.', + 'cost' => 800, + 'requires_character' => true, + 'type' => 'character_customize', + ], + 'race_change' => [ + 'name' => 'Race Change', + 'description' => 'Unlocks race change on next login.', + 'cost' => 1200, + 'requires_character' => true, + 'type' => 'character_race_change', + ], + 'faction_change' => [ + 'name' => 'Faction Change', + 'description' => 'Unlocks faction change on next login.', + 'cost' => 1500, + 'requires_character' => true, + 'type' => 'character_faction_change', + ], + 'starter_mail' => [ + 'name' => 'Starter Mail Pack', + 'description' => 'Sends a starter pack by in-game mail.', + 'cost' => 500, + 'requires_character' => true, + 'type' => 'mail_starter_pack', + ], + ]; + } + + /** + * @param array $product + */ + private function executeProduct(SoapAccountCreator $soap, array $product, string $characterName): string + { + return match ((string) $product['type']) { + 'character_rename' => $soap->character()->rename($characterName), + 'character_customize' => $soap->character()->customize($characterName), + 'character_race_change' => $soap->character()->changeRace($characterName), + 'character_faction_change' => $soap->character()->changeFaction($characterName), + 'mail_starter_pack' => $soap->mail()->sendItems( + $characterName, + 'Nexus Store - Starter Pack', + 'Thanks for your purchase. Enjoy your items and gold.', + [6948 => 1, 17031 => 20, 33447 => 10] + ), + default => throw new \InvalidArgumentException('Unsupported product type.'), + }; + } + + private function responseHasError(string $response): bool + { + return preg_match('/error|fail|invalid|denied/i', $response) === 1; + } +} \ No newline at end of file diff --git a/app/Modules/Store/Http/routes.php b/app/Modules/Store/Http/routes.php new file mode 100644 index 0000000..30a37f2 --- /dev/null +++ b/app/Modules/Store/Http/routes.php @@ -0,0 +1,11 @@ +prefix('store') + ->name('store.') + ->group(function () { + Route::get('/', [\Modules\Store\Http\Controllers\StoreController::class, 'index'])->name('index'); + Route::post('/purchase', [\Modules\Store\Http\Controllers\StoreController::class, 'purchase'])->name('purchase'); + }); \ No newline at end of file diff --git a/app/Modules/Store/Infrastructure/Database/migrations/2024_01_01_000001_create_store_products_table.php b/app/Modules/Store/Infrastructure/Database/migrations/2024_01_01_000001_create_store_products_table.php new file mode 100644 index 0000000..f4011d5 --- /dev/null +++ b/app/Modules/Store/Infrastructure/Database/migrations/2024_01_01_000001_create_store_products_table.php @@ -0,0 +1,39 @@ +id(); + $table->string('key')->unique(); + $table->string('name'); + $table->text('description')->nullable(); + $table->unsignedInteger('cost')->default(0); + $table->string('type')->nullable(); + $table->boolean('requires_character')->default(false); + $table->boolean('active')->default(true); + $table->unsignedSmallInteger('sort_order')->default(0); + $table->timestamps(); + }); + + // Seed with existing hardcoded products + DB::table('store_products')->insert([ + ['key' => 'rename', 'name' => 'Character Rename', 'description' => 'Change your character name.', 'cost' => 600, 'type' => 'character_rename', 'requires_character' => true, 'active' => true, 'sort_order' => 1, 'created_at' => now(), 'updated_at' => now()], + ['key' => 'customize', 'name' => 'Character Customize', 'description' => 'Customize your character appearance.', 'cost' => 800, 'type' => 'character_customize', 'requires_character' => true, 'active' => true, 'sort_order' => 2, 'created_at' => now(), 'updated_at' => now()], + ['key' => 'race_change', 'name' => 'Race Change', 'description' => 'Change your character race.', 'cost' => 1200, 'type' => 'change_race', 'requires_character' => true, 'active' => true, 'sort_order' => 3, 'created_at' => now(), 'updated_at' => now()], + ['key' => 'faction_change', 'name' => 'Faction Change', 'description' => 'Switch your character to the opposite faction.', 'cost' => 1500, 'type' => 'change_faction', 'requires_character' => true, 'active' => true, 'sort_order' => 4, 'created_at' => now(), 'updated_at' => now()], + ['key' => 'starter_mail', 'name' => 'Starter Pack', 'description' => 'Receive a starter mail with useful items.', 'cost' => 500, 'type' => 'send_starter_mail', 'requires_character' => false, 'active' => true, 'sort_order' => 5, 'created_at' => now(), 'updated_at' => now()], + ]); + } + + public function down(): void + { + Schema::dropIfExists('store_products'); + } +}; diff --git a/app/Modules/Store/Providers/StoreServiceProvider.php b/app/Modules/Store/Providers/StoreServiceProvider.php new file mode 100644 index 0000000..89cd32c --- /dev/null +++ b/app/Modules/Store/Providers/StoreServiceProvider.php @@ -0,0 +1,10 @@ + +
+
+
+

+ Donation Store +

+

+ Use your donation points to purchase exclusive items, services, and perks across all realms +

+
+ +
+
Your Balance
+
{{ number_format($balance) }} DP
+
+
+
+
+
+ +
+
+
+
+

Donation Store

+

Purchase account services and rewards using your Donation Points.

+
+
+

Current Balance

+

{{ number_format($balance) }} DP

+
+
+
+ + @if (session('success')) +
+ {{ session('success') }} +
+ @endif + + @if (session('error')) +
+ {{ session('error') }} +
+ @endif + + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + + @if ($linkedAccounts->isEmpty()) +
+ You do not have linked game accounts yet. Link at least one realm account before making purchases. +
+ @else +
+ @foreach ($products as $key => $product) +
+
+

{{ $product['name'] }}

+

{{ $product['description'] }}

+
+ +
{{ number_format($product['cost']) }} DP
+ +
+ @csrf + + +
+ + +
+ + @if ($product['requires_character']) +
+ + +
+ @endif + + +
+
+ @endforeach +
+ @endif +
+ @endsection + diff --git a/app/Modules/Store/admin-crud.json b/app/Modules/Store/admin-crud.json new file mode 100644 index 0000000..ae59229 --- /dev/null +++ b/app/Modules/Store/admin-crud.json @@ -0,0 +1,94 @@ +{ + "title": "Store Products", + "model": "Modules\\Store\\Domain\\Models\\StoreProduct", + "list": { + "searchable": ["name", "key", "type"], + "order_by": "sort_order", + "order_dir": "asc", + "columns": [ + { "field": "sort_order", "label": "#" }, + { "field": "name", "label": "Product" }, + { "field": "type", "label": "Type" }, + { "field": "cost", "label": "Cost (DP)" }, + { "field": "active", "label": "Active", "format": "boolean" } + ] + }, + "form": { + "sections": [ + { + "title": "Product Info", + "fields": [ + { + "name": "name", + "label": "Name", + "type": "text", + "required": true, + "placeholder": "e.g. Character Rename" + }, + { + "name": "key", + "label": "Key", + "type": "text", + "required": true, + "placeholder": "e.g. rename", + "hint": "Unique slug used for SOAP commands." + }, + { + "name": "description", + "label": "Description", + "type": "textarea", + "required": false + } + ] + }, + { + "title": "Pricing & Settings", + "fields": [ + { + "name": "cost", + "label": "Cost (DP)", + "type": "number", + "required": true, + "min": 0 + }, + { + "name": "type", + "label": "SOAP Type", + "type": "enum", + "required": false, + "hint": "SOAP command type to execute on purchase.", + "options": [ + { "value": "character_rename", "label": "Character Rename" }, + { "value": "character_customize", "label": "Character Customize" }, + { "value": "character_race_change", "label": "Race Change" }, + { "value": "character_class_change", "label": "Class Change" }, + { "value": "level_boost", "label": "Level Boost" }, + { "value": "gold", "label": "Gold" }, + { "value": "item", "label": "Item" }, + { "value": "custom", "label": "Custom" } + ] + }, + { + "name": "sort_order", + "label": "Sort Order", + "type": "number", + "required": false, + "min": 0 + }, + { + "name": "requires_character", + "label": "Requires Character", + "type": "toggle", + "hint": "If checked, the player must select a character during purchase." + }, + { + "name": "active", + "label": "Active", + "type": "toggle", + "hint": "Inactive products are hidden in the store." + } + ] + } + ] + } +} diff --git a/app/Modules/Store/module.json b/app/Modules/Store/module.json new file mode 100644 index 0000000..b409002 --- /dev/null +++ b/app/Modules/Store/module.json @@ -0,0 +1,16 @@ +{ + "name": "Store", + "enabled": true, + "routes": true, + "migrations": true, + "views": true, + "translations": false, + "namespace": "Modules\\Store", + "admin_crud": "json", + "admin_menu": { + "label": "Store", + "icon": "fas fa-shopping-cart", + "route": "admin.store.crud.index", + "order": 25 + } +} diff --git a/app/Policies/AdminUserPolicy.php b/app/Policies/AdminUserPolicy.php new file mode 100644 index 0000000..4b13829 --- /dev/null +++ b/app/Policies/AdminUserPolicy.php @@ -0,0 +1,43 @@ +hasPermissionTo('manage.admin.users') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.admin.users'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.admin.users'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.admin.users'); + } + + public function update(User $user): bool + { + return $user->hasPermissionTo('manage.admin.users'); + } + + public function delete(User $user): bool + { + // Admin role users cannot be deleted + if ($user->hasRole('Admin')) { + return false; + } + + return $user->hasPermissionTo('manage.admin.users'); + } +} \ No newline at end of file diff --git a/app/Policies/AnalyticsPolicy.php b/app/Policies/AnalyticsPolicy.php new file mode 100644 index 0000000..3568064 --- /dev/null +++ b/app/Policies/AnalyticsPolicy.php @@ -0,0 +1,24 @@ +hasPermissionTo('view.analytics') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('view.analytics'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('view.analytics'); + } +} \ No newline at end of file diff --git a/app/Policies/BackupPolicy.php b/app/Policies/BackupPolicy.php new file mode 100644 index 0000000..68e99c6 --- /dev/null +++ b/app/Policies/BackupPolicy.php @@ -0,0 +1,33 @@ +hasPermissionTo('manage.backups') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.backups'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.backups'); + } + + public function download(User $user): bool + { + return $user->hasPermissionTo('manage.backups'); + } + + public function delete(User $user): bool + { + return $user->hasPermissionTo('manage.backups'); + } +} \ No newline at end of file diff --git a/app/Policies/CommentPolicy.php b/app/Policies/CommentPolicy.php new file mode 100644 index 0000000..751f70b --- /dev/null +++ b/app/Policies/CommentPolicy.php @@ -0,0 +1,14 @@ +id === $comment->user_id || $user->hasRole('Admin'); + } +} \ No newline at end of file diff --git a/app/Policies/LogPolicy.php b/app/Policies/LogPolicy.php new file mode 100644 index 0000000..bd690dc --- /dev/null +++ b/app/Policies/LogPolicy.php @@ -0,0 +1,23 @@ +hasPermissionTo('view.logs') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('view.logs'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('view.logs'); + } +} \ No newline at end of file diff --git a/app/Policies/ModulePolicy.php b/app/Policies/ModulePolicy.php new file mode 100644 index 0000000..c98c991 --- /dev/null +++ b/app/Policies/ModulePolicy.php @@ -0,0 +1,48 @@ +hasPermissionTo('manage.modules') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function update(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function toggle(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function migrate(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function delete(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } + + public function uninstall(User $user): bool + { + return $user->hasPermissionTo('manage.modules'); + } +} \ No newline at end of file diff --git a/app/Policies/NewsCategoryPolicy.php b/app/Policies/NewsCategoryPolicy.php new file mode 100644 index 0000000..7d5c6d1 --- /dev/null +++ b/app/Policies/NewsCategoryPolicy.php @@ -0,0 +1,39 @@ +hasPermissionTo('manage.news') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function update(User $user, NewsCategory $newsCategory): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function delete(User $user, NewsCategory $newsCategory): bool + { + return $user->hasPermissionTo('manage.news'); + } +} \ No newline at end of file diff --git a/app/Policies/NewsPolicy.php b/app/Policies/NewsPolicy.php new file mode 100644 index 0000000..e83e07f --- /dev/null +++ b/app/Policies/NewsPolicy.php @@ -0,0 +1,47 @@ +hasPermissionTo('manage.news') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function view(User $user, News $news): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function update(User $user, News $news): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function delete(User $user, News $news): bool + { + return $user->hasPermissionTo('manage.news'); + } + + public function restore(User $user, News $news): bool + { + return $user->hasPermissionTo('manage.news'); + } +} \ No newline at end of file diff --git a/app/Policies/RealmPolicy.php b/app/Policies/RealmPolicy.php new file mode 100644 index 0000000..29e5cd0 --- /dev/null +++ b/app/Policies/RealmPolicy.php @@ -0,0 +1,43 @@ +hasPermissionTo('manage.realms') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } + + public function update(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } + + public function delete(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } + + public function soapTest(User $user): bool + { + return $user->hasPermissionTo('manage.realms'); + } +} \ No newline at end of file diff --git a/app/Policies/RolePolicy.php b/app/Policies/RolePolicy.php new file mode 100644 index 0000000..8789c87 --- /dev/null +++ b/app/Policies/RolePolicy.php @@ -0,0 +1,38 @@ +hasPermissionTo('manage.roles') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.roles'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.roles'); + } + + public function create(User $user): bool + { + return $user->hasPermissionTo('manage.roles'); + } + + public function update(User $user): bool + { + return $user->hasPermissionTo('manage.roles'); + } + + public function delete(User $user): bool + { + return $user->hasPermissionTo('manage.roles'); + } +} \ No newline at end of file diff --git a/app/Policies/UpdatePolicy.php b/app/Policies/UpdatePolicy.php new file mode 100644 index 0000000..9cf2ce4 --- /dev/null +++ b/app/Policies/UpdatePolicy.php @@ -0,0 +1,28 @@ +hasPermissionTo('manage.settings') ? true : null; + } + + public function viewAny(User $user): bool + { + return $user->hasPermissionTo('manage.settings'); + } + + public function view(User $user): bool + { + return $user->hasPermissionTo('manage.settings'); + } + + public function apply(User $user): bool + { + return $user->hasPermissionTo('manage.settings'); + } +} \ No newline at end of file diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 5a4632d..8bcd57c 100755 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,17 +2,18 @@ namespace App\Providers; +use App\Libraries\Redis\RedisLibrary; +use Illuminate\Cache\RateLimiting\Limit; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Config; -use App\Services\ArmoryService; -use App\Services\Parser\WowheadParserService; -use App\Interfaces\ArmoryRepositoryInterface; +use Modules\Armory\Services\ArmoryService; +use Modules\Armory\Services\WowheadParserService; +use Modules\Armory\Domain\Interfaces\ArmoryRepositoryInterface; class AppServiceProvider extends ServiceProvider { - /** - * Register any application services. - */ public function register(): void { // Register ArmoryService @@ -23,6 +24,12 @@ public function register(): void ); }); + // Register RedisLibrary (solo prefix) + $this->app->singleton(RedisLibrary::class, function ($app) { + $prefix = config('cache.prefix', ''); + return new RedisLibrary($prefix); + }); + if (app()->environment('production')) { $forbidden = [ 'laravel/telescope', @@ -38,16 +45,45 @@ public function register(): void } } - /** - * Bootstrap any application services. - */ public function boot(): void { - if (!file_exists(storage_path('installed.lock'))) { - // Durante la instalación forzamos sesiones en archivos + $isInstalled = file_exists(storage_path('installer.lock')) || file_exists(storage_path('installed.lock')); + + if (!$isInstalled) { Config::set('session.driver', 'file'); Config::set('cache.default', 'file'); Config::set('queue.default', 'sync'); } + + $this->configureRateLimiters(); + } + + /** + * Register named rate limiters used by the donate module and elsewhere. + * + * - donate-checkout: per authenticated user, 5 attempts/min. Hard cap + * against scripted donation abuse; reasonable for legit double-clicks. + * - donate-webhook: per IP, 30/min. Legit gateways can retry a handful + * of times; this stops flood / replay attempts. + * - donate-receipt: per authenticated user, 20/min. Generous because + * the user may open the receipt several times (email link, browser + * back, etc.). + */ + protected function configureRateLimiters(): void + { + RateLimiter::for('donate-checkout', function (Request $request) { + return Limit::perMinute(5) + ->by('donate-checkout:' . optional($request->user())->id ?: $request->ip()); + }); + + RateLimiter::for('donate-webhook', function (Request $request) { + return Limit::perMinute(30) + ->by('donate-webhook:' . $request->ip()); + }); + + RateLimiter::for('donate-receipt', function (Request $request) { + return Limit::perMinute(20) + ->by('donate-receipt:' . optional($request->user())->id ?: $request->ip()); + }); } } diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php new file mode 100644 index 0000000..6941b40 --- /dev/null +++ b/app/Providers/AuthServiceProvider.php @@ -0,0 +1,59 @@ + + */ + protected $policies = [ + User::class => AdminUserPolicy::class, + News::class => NewsPolicy::class, + NewsCategory::class => NewsCategoryPolicy::class, + Role::class => RolePolicy::class, + Permission::class => PermissionPolicy::class, + UpdateLog::class => UpdatePolicy::class, + Backup::class => BackupPolicy::class, + Module::class => ModulePolicy::class, + Log::class => LogPolicy::class, + Realm::class => RealmPolicy::class, + AnalyticsSession::class => AnalyticsPolicy::class, + Comment::class => CommentPolicy::class, + ]; + + /** + * Register any authentication / authorization services. + */ + public function boot(): void + { + $this->registerPolicies(); + } +} \ No newline at end of file diff --git a/app/Providers/BaseModuleServiceProvider.php b/app/Providers/BaseModuleServiceProvider.php new file mode 100644 index 0000000..b777ee0 --- /dev/null +++ b/app/Providers/BaseModuleServiceProvider.php @@ -0,0 +1,149 @@ +moduleName)) { + throw new \RuntimeException('Module name not defined in ' . static::class); + } + + $manifest = ModuleRegistryService::getModule($this->moduleName); + + if (is_array($manifest)) { + $this->modulePath = (string) ($manifest['path'] ?? base_path("app/Modules/{$this->moduleName}")); + $this->config = is_array($manifest['config'] ?? null) ? $manifest['config'] : []; + $this->config['namespace'] = (string) ($manifest['namespace'] ?? ($this->config['namespace'] ?? "Modules\\{$this->moduleName}")); + $this->config['routes'] = (bool) ($manifest['routes'] ?? ($this->config['routes'] ?? false)); + $this->config['migrations'] = (bool) ($manifest['migrations'] ?? ($this->config['migrations'] ?? false)); + $this->config['views'] = (bool) ($manifest['views'] ?? ($this->config['views'] ?? false)); + $this->config['translations'] = (bool) ($manifest['translations'] ?? ($this->config['translations'] ?? false)); + $this->config['admin_crud'] = (string) ($manifest['admin_crud'] ?? ($this->config['admin_crud'] ?? '')); + } else { + $this->modulePath = base_path("app/Modules/{$this->moduleName}"); + } + + if ($this->config['routes'] ?? false) { + $this->loadRoutes(); + } + + if ($this->config['migrations'] ?? false) { + $this->loadMigrations(); + } + + if ($this->config['views'] ?? false) { + $this->loadViews(); + } + + if ($this->config['translations'] ?? false) { + $this->loadTranslations(); + } + + $adminCrud = (string) ($this->config['admin_crud'] ?? ''); + + if ($adminCrud === 'custom') { + $this->loadAdminRoutes(); + $this->loadAdminViews(); + } + } + + /** + * Load routes from the module's Http/routes.php file. + * + * @return void + */ + private function loadRoutes(): void + { + $routesPath = $this->modulePath . '/Http/routes.php'; + if (is_file($routesPath)) { + Route::middleware('web') + ->namespace(($this->config['namespace'] ?? "Modules\\{$this->moduleName}") . '\\Http\\Controllers') + ->group($routesPath); + } + } + + /** + * Load migrations from the module's Infrastructure/Database/migrations directory. + * + * @return void + */ + private function loadMigrations(): void + { + $path = $this->modulePath . '/Infrastructure/Database/migrations'; + if (is_dir($path)) { + $this->loadMigrationsFrom($path); + } + } + + /** + * Load views from the module's resources/views directory. + * Supports both "views" and "Views" for case-sensitive filesystems. + */ + private function loadViews(): void + { + foreach ([$this->modulePath . '/Resources/views', $this->modulePath . '/Resources/Views'] as $path) { + if (is_dir($path)) { + $this->loadViewsFrom($path, strtolower($this->moduleName)); + return; + } + } + } + + /** + * Load translations from the module's lang directory. + * Supports both "lang" and "Lang" for case-sensitive filesystems. + */ + private function loadTranslations(): void + { + foreach ([$this->modulePath . '/Resources/lang', $this->modulePath . '/Resources/Lang'] as $path) { + if (is_dir($path)) { + $this->loadTranslationsFrom($path, strtolower($this->moduleName)); + return; + } + } + } + + /** + * Load admin routes from the module's Admin/routes.php file (Modo B). + * + * @return void + */ + private function loadAdminRoutes(): void + { + $path = $this->modulePath . '/Admin/routes.php'; + if (is_file($path)) { + Route::middleware(['web', 'auth']) + ->group($path); + } + } + + /** + * Register admin views namespace from the module's Admin/Views directory (Modo B). + * Supports both "Views" (uppercase) and "views" (lowercase) to handle + * case-sensitive filesystems in production (Linux). + */ + private function loadAdminViews(): void + { + $candidates = [ + $this->modulePath . '/Admin/Views', + $this->modulePath . '/Admin/views', + ]; + + foreach ($candidates as $path) { + if (is_dir($path)) { + $this->loadViewsFrom($path, strtolower($this->moduleName) . '-admin'); + return; + } + } + } +} diff --git a/app/Providers/ModuleServiceProvider.php b/app/Providers/ModuleServiceProvider.php new file mode 100644 index 0000000..355460a --- /dev/null +++ b/app/Providers/ModuleServiceProvider.php @@ -0,0 +1,75 @@ +app->register($provider); + } + } + + public function boot(): void + { + $this->registerJsonCrudRoutes(); + + $isInstalled = file_exists(storage_path('installer.lock')) || file_exists(storage_path('installed.lock')); + + if (!$isInstalled) { + $this->app->setLocale(config('app.locale', 'en')); + + return; + } + + $locale = settings('default_locale') ?? 'es'; + $this->app->setLocale($locale); + } + + private function registerJsonCrudRoutes(): void + { + foreach (ModuleRegistryService::getEnabledModules() as $module) { + if (($module['admin_crud'] ?? '') !== 'json') { + continue; + } + + $folder = (string) ($module['folder'] ?? ''); + if ($folder === '') { + continue; + } + + $slug = strtolower($folder); + $routeBase = 'admin.' . $slug . '.crud.'; + + Route::middleware(['web', 'auth', 'permission:access.admin.panel']) + ->prefix('acp/' . $slug . '/manage') + ->name($routeBase) + ->group(function () use ($folder) { + Route::get('/', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'index']) + ->name('index') + ->defaults('module', $folder); + Route::get('/create', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'create']) + ->name('create') + ->defaults('module', $folder); + Route::post('/', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'store']) + ->name('store') + ->defaults('module', $folder); + Route::get('/{id}/edit', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'edit']) + ->name('edit') + ->defaults('module', $folder); + Route::put('/{id}', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'update']) + ->name('update') + ->defaults('module', $folder); + Route::delete('/{id}', [\Modules\Admin\Http\Controllers\GenericCrudController::class, 'destroy']) + ->name('destroy') + ->defaults('module', $folder); + }); + } + } +} + diff --git a/app/Services/AnalyticsService.php b/app/Services/AnalyticsService.php new file mode 100644 index 0000000..d91f577 --- /dev/null +++ b/app/Services/AnalyticsService.php @@ -0,0 +1,266 @@ +getStartDate($period); + + return [ + 'period' => $period, + 'start_date' => $startDate, + 'total_visitors' => $this->getTotalVisitors($startDate), + 'page_views' => $this->getPageViews($startDate), + 'avg_session_duration' => $this->getAverageSessionDuration($startDate), + 'bounce_rate' => $this->getBounceRate($startDate), + 'top_pages' => $this->getTopPages($startDate), + 'visitor_growth' => $this->getVisitorGrowth($startDate), + 'traffic_by_device' => $this->getTrafficByDevice($startDate), + 'traffic_by_source' => $this->getTrafficBySource($startDate), + ]; + } + + /** + * Get the start date based on period + */ + public function getStartDate(string $period): Carbon + { + return match($period) { + '7d' => Carbon::now()->subDays(7), + '90d' => Carbon::now()->subDays(90), + '1y' => Carbon::now()->subYear(), + default => Carbon::now()->subDays(30), + }; + } + + /** + * Get total visitors count + */ + public function getTotalVisitors(Carbon $startDate): int + { + return AnalyticsSession::where('created_at', '>=', $startDate) + ->where('is_bot', false) + ->distinct('visitor_id') + ->count('visitor_id'); + } + + /** + * Get total page views + */ + public function getPageViews(Carbon $startDate): int + { + return AnalyticsPageView::whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + })->count(); + } + + /** + * Get average session duration in seconds + */ + public function getAverageSessionDurationSeconds(Carbon $startDate): int + { + return (int) AnalyticsSession::where('created_at', '>=', $startDate) + ->where('is_bot', false) + ->avg('duration_seconds') ?? 0; + } + + /** + * Get average session duration formatted + */ + public function getAverageSessionDuration(Carbon $startDate): string + { + return $this->formatSeconds($this->getAverageSessionDurationSeconds($startDate)); + } + + /** + * Get bounce rate percentage + */ + public function getBounceRate(Carbon $startDate): float + { + $totalPageViews = AnalyticsPageView::whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + })->count(); + + if ($totalPageViews === 0) { + return 0; + } + + $bouncedPageViews = AnalyticsPageView::where('bounced', true) + ->whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + })->count(); + + return round(($bouncedPageViews / $totalPageViews) * 100, 2); + } + + /** + * Get top pages with analytics data + */ + public function getTopPages(Carbon $startDate, int $limit = 10): array + { + return AnalyticsPageView::select( + 'page_url as url', + 'page_title as title', + DB::raw('COUNT(*) as views'), + DB::raw('COUNT(DISTINCT session_id) as unique_visitors'), + DB::raw('AVG(time_on_page) as avg_duration'), + DB::raw('SUM(CASE WHEN bounced = 1 THEN 1 ELSE 0 END) / COUNT(*) * 100 as bounce_rate') + ) + ->whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + }) + ->groupBy('page_url', 'page_title') + ->orderByDesc('views') + ->limit($limit) + ->get() + ->map(fn($page) => [ + 'url' => $page->url, + 'title' => $page->title, + 'views' => (int)$page->views, + 'unique_visitors' => (int)$page->unique_visitors, + 'avg_duration' => $this->formatSeconds((int)$page->avg_duration), + 'bounce_rate' => round($page->bounce_rate ?? 0, 2), + ]) + ->toArray(); + } + + /** + * Get visitor growth over time + */ + public function getVisitorGrowth(Carbon $startDate): array + { + $days = now()->diffInDays($startDate) ?: 30; + + return AnalyticsSession::select( + DB::raw('DATE(created_at) as date'), + DB::raw('COUNT(DISTINCT visitor_id) as visitors') + ) + ->where('created_at', '>=', $startDate) + ->where('is_bot', false) + ->groupBy('date') + ->orderBy('date') + ->get() + ->map(fn($row) => [ + 'date' => $row->date, + 'visitors' => (int)$row->visitors, + ]) + ->toArray(); + } + + /** + * Get traffic by device type + */ + public function getTrafficByDevice(Carbon $startDate): array + { + $total = AnalyticsSession::where('created_at', '>=', $startDate) + ->where('is_bot', false) + ->count(); + + if ($total === 0) { + return []; + } + + // Parse device types from user agent without loading all sessions in memory. + $devices = []; + + AnalyticsSession::query() + ->where('created_at', '>=', $startDate) + ->where('is_bot', false) + ->select(['id', 'user_agent']) + ->orderBy('id') + ->chunkById(1000, function ($sessions) use (&$devices): void { + foreach ($sessions as $session) { + $device = $this->detectDevice((string) $session->user_agent); + $devices[$device] = ($devices[$device] ?? 0) + 1; + } + }); + + return collect($devices) + ->map(function ($count, $device) use ($total) { + return [ + 'device' => $device, + 'count' => $count, + 'percentage' => round(($count / $total) * 100, 2), + ]; + }) + ->filter(fn ($row) => $row['count'] > 0) + ->toArray(); + } + + /** + * Get traffic by source (referrer) + */ + public function getTrafficBySource(Carbon $startDate): array + { + $total = AnalyticsPageView::whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + })->count(); + + if ($total === 0) { + return []; + } + + return AnalyticsPageView::select( + DB::raw('COALESCE(referrer, "direct") as source'), + DB::raw('COUNT(*) as count') + ) + ->whereHas('session', function ($query) use ($startDate) { + $query->where('created_at', '>=', $startDate) + ->where('is_bot', false); + }) + ->groupBy('source') + ->orderByDesc('count') + ->limit(10) + ->get() + ->map(fn($row) => [ + 'source' => $row->source, + 'count' => (int)$row->count, + 'percentage' => round(($row->count / $total) * 100, 2), + ]) + ->toArray(); + } + + /** + * Format seconds to MM:SS format + */ + public function formatSeconds(int $seconds): string + { + $minutes = intdiv($seconds, 60); + $secs = $seconds % 60; + + return sprintf('%d:%02d', $minutes, $secs); + } + + /** + * Detect device type from user agent + */ + protected function detectDevice(string $userAgent): string + { + $userAgent = strtolower($userAgent); + + if (str_contains($userAgent, 'mobile') || str_contains($userAgent, 'android')) { + return 'Mobile'; + } + + if (str_contains($userAgent, 'tablet') || str_contains($userAgent, 'ipad')) { + return 'Tablet'; + } + + return 'Desktop'; + } +} diff --git a/app/Services/InstallService.php b/app/Services/InstallService.php index cd1eb35..0d654d7 100644 --- a/app/Services/InstallService.php +++ b/app/Services/InstallService.php @@ -2,10 +2,10 @@ namespace App\Services; +use App\Models\Realm; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\Artisan; use App\Models\User; -use Spatie\Permission\Contracts\Role; class InstallService { @@ -22,6 +22,7 @@ public function run(array $options = []) Artisan::call('migrate:fresh', ['--seed' => true]); $this->createAdminAccount($options); + $this->createInitialRealm($options); Artisan::call('storage:link'); Artisan::call('key:generate'); Artisan::call('config:cache'); @@ -38,15 +39,38 @@ protected function createAdminAccount(array $options) $adminEmail = $options['admin_email']; $adminPassword = $options['admin_password']; - $user = User::create([ - 'name' => $adminName, + $user = User::query()->firstOrCreate([ 'email' => $adminEmail, + ], [ + 'name' => $adminName, 'password' => bcrypt($adminPassword), ]); $user->assignRole('Admin'); } + protected function createInitialRealm(array $options): void + { + Realm::query()->firstOrCreate( + ['name' => $options['realm_name']], + [ + 'hostname' => $options['realm_hostname'], + 'port' => $options['realm_port'], + 'expansion' => $options['realm_expansion'], + 'emulator' => $options['realm_emulator'], + 'bnet' => (bool) ($options['realm_bnet'] ?? false), + 'auth_database' => json_encode($this->buildDatabaseConfig($options['realm_auth'])), + 'character_database' => json_encode($this->buildDatabaseConfig($options['realm_characters'])), + 'world_database' => json_encode($this->buildDatabaseConfig($options['realm_world'])), + 'console_hostname' => $options['realm_console_hostname'], + 'console_port' => $options['realm_console_port'] ?? null, + 'console_username' => $options['realm_console_username'], + 'console_password' => $options['realm_console_password'], + 'console_urn' => $options['realm_console_urn'], + ] + ); + } + protected function configureEnvironment(array $options) { $envFile = base_path('.env'); @@ -86,6 +110,23 @@ protected function configureEnvironment(array $options) $this->updateEnv($envConfig); } + protected function buildDatabaseConfig(array $config): array + { + return [ + 'driver' => 'mysql', + 'host' => $config['host'], + 'port' => $config['port'] ?? 3306, + 'database' => $config['database'], + 'username' => $config['username'], + 'password' => $config['password'], + 'charset' => $config['charset'] ?? 'utf8mb4', + 'collation' => $config['collation'] ?? 'utf8mb4_unicode_ci', + 'prefix' => '', + 'strict' => true, + 'engine' => null, + ]; + } + protected function updateEnv(array $data) { $envPath = base_path('.env'); @@ -93,18 +134,38 @@ protected function updateEnv(array $data) foreach ($data as $key => $value) { if ($value !== null) { + $sanitized = $this->sanitizeEnvValue((string) $value); + if (preg_match("/^{$key}=.*/m", $envContent)) { $envContent = preg_replace( "/^{$key}=.*/m", - "{$key}=\"{$value}\"", + "{$key}={$sanitized}", $envContent ); } else { - $envContent .= PHP_EOL."{$key}=\"{$value}\""; + $envContent .= PHP_EOL."{$key}={$sanitized}"; } } } $this->files->put($envPath, $envContent); } + + /** + * Sanitize a value for safe inclusion in a .env file. + * + * Strips control characters (newlines, carriage returns, null bytes) + * that could be used to inject additional environment variables, + * then wraps the value in double quotes with internal quotes escaped. + */ + protected function sanitizeEnvValue(string $value): string + { + // Remove characters that could break out of the value context + $value = str_replace(["\n", "\r", "\0", "\x1a"], '', $value); + + // Escape any embedded double quotes + $value = str_replace('"', '\\"', $value); + + return "\"{$value}\""; + } } diff --git a/app/Services/LocalizationService.php b/app/Services/LocalizationService.php new file mode 100644 index 0000000..530b39b --- /dev/null +++ b/app/Services/LocalizationService.php @@ -0,0 +1,93 @@ + 0) + ? $decoded + : [static::getDefaultLocale()]; + } + + /** + * Get the configured default locale. + */ + public static function getDefaultLocale(): string + { + return static::getSetting('default_locale', config('app.locale', 'en')); + } + + /** + * Get locale display names map, e.g. ['en' => 'English', 'es' => 'Español']. + * + * @return array + */ + public static function getLocaleNames(): array + { + return [ + 'en' => 'English', + 'es' => 'Español', + 'fr' => 'Français', + 'de' => 'Deutsch', + 'it' => 'Italiano', + 'pt' => 'Português', + 'ru' => 'Русский', + 'zh' => '中文', + 'ja' => '日本語', + 'ko' => '한국어', + 'ar' => 'العربية', + 'nl' => 'Nederlands', + 'pl' => 'Polski', + 'tr' => 'Türkçe', + ]; + } + + /** + * Read a setting value from cache-backed DB. + */ + private static function getSetting(string $key, mixed $default = null): mixed + { + $settings = Cache::remember(self::CACHE_KEY, self::CACHE_TTL, function () { + return Setting::all()->pluck('value', 'key')->toArray(); + }); + + return $settings[$key] ?? $default; + } + + /** + * Clear the localization cache (called after settings update). + */ + public static function clearCache(): void + { + Cache::forget(self::CACHE_KEY); + } +} diff --git a/app/Services/ModuleCrudService.php b/app/Services/ModuleCrudService.php new file mode 100644 index 0000000..22d0b39 --- /dev/null +++ b/app/Services/ModuleCrudService.php @@ -0,0 +1,230 @@ +newQuery(); + + // Support both formats: + // "searchable": ["col1", "col2"] — array of columns + // "searchable": true, "search_columns": ["col1", "col2"] — legacy boolean + separate key + $searchableCfg = $config['list']['searchable'] ?? []; + $searchColumns = is_array($searchableCfg) + ? $searchableCfg + : (is_array($config['list']['search_columns'] ?? null) ? $config['list']['search_columns'] : []); + + if ($search !== null && $search !== '' && count($searchColumns) > 0) { + $query->where(function ($q) use ($search, $searchColumns) { + foreach ($searchColumns as $column) { + $q->orWhere($column, 'like', '%' . $search . '%'); + } + }); + } + + $orderBy = (string) ($config['list']['order_by'] ?? ''); + $orderDir = strtolower((string) ($config['list']['order_dir'] ?? 'asc')) === 'desc' ? 'desc' : 'asc'; + if ($orderBy !== '') { + $query->orderBy($orderBy, $orderDir); + } + + $perPage = (int) ($config['list']['per_page'] ?? 15); + + return $query->paginate($perPage); + } + + /** + * Find a single record by ID. + */ + public static function find(array $config, int|string $id): Model + { + $model = self::resolveModel($config); + $record = $model->newQuery()->findOrFail($id); + + return $record; + } + + /** + * Store a new record. + */ + public static function store(array $config, array $data): Model + { + $model = self::resolveModel($config); + $record = $model->newInstance($data); + $record->save(); + + return $record; + } + + /** + * Update an existing record. + */ + public static function update(array $config, int|string $id, array $data): Model + { + $record = self::find($config, $id); + $record->fill($data); + $record->save(); + + return $record; + } + + /** + * Delete a record by ID. + */ + public static function destroy(array $config, int|string $id): void + { + $record = self::find($config, $id); + $record->delete(); + } + + /** + * Resolve options for a relation field. + */ + public static function resolveRelationOptions(array $field): array + { + $modelClass = trim((string) ($field['model'] ?? '')); + $valueField = (string) ($field['value_field'] ?? 'id'); + $labelField = (string) ($field['label_field'] ?? 'name'); + + if ($modelClass === '' || !class_exists($modelClass)) { + return []; + } + + return $modelClass::query() + ->get([$valueField, $labelField]) + ->map(fn ($item) => ['value' => $item->{$valueField}, 'label' => $item->{$labelField}]) + ->all(); + } + + public static function flushCache(): void + { + self::$cache = []; + } + + private static function enumRules(array $field): array + { + $options = $field['options'] ?? []; + $values = array_map( + fn($opt) => is_array($opt) ? (string) ($opt['value'] ?? '') : (string) $opt, + $options + ); + + if (empty($values)) { + return ['string']; + } + + return ['string', 'in:' . implode(',', $values)]; + } + + private static function typeRules(array $field, bool $isUpdate): array + { + $rules = match ($field['type'] ?? 'text') { + 'text', 'slug' => ['string', 'max:' . (int) ($field['max'] ?? 255)], + 'textarea', 'richtext' => ['string'], + 'number' => ['numeric'], + 'toggle', 'checkbox' => ['boolean'], + 'date' => ['date'], + 'datetime' => ['date'], + 'email' => ['email', 'max:' . (int) ($field['max'] ?? 255)], + 'url' => ['url', 'max:' . (int) ($field['max'] ?? 255)], + 'image' => $isUpdate ? ['nullable', 'image', 'max:2048'] : ['image', 'max:2048'], + 'file' => $isUpdate ? ['nullable', 'file', 'max:10240'] : ['file', 'max:10240'], + 'select' => [], + 'relation' => ['integer'], + 'enum' => self::enumRules($field), + default => [], + }; + + // Append min/max constraints from config for numeric types + if (in_array($field['type'] ?? '', ['number', 'text', 'textarea', 'email', 'url', 'slug'], true)) { + if (isset($field['min']) && is_numeric($field['min'])) { + $rules[] = ($field['type'] === 'number') ? 'min:' . $field['min'] : 'min:' . (int) $field['min']; + } + if (isset($field['max']) && is_numeric($field['max']) && ($field['type'] === 'number')) { + $rules[] = 'max:' . $field['max']; + } + } + + return $rules; + } +} diff --git a/app/Services/ModuleRegistryService.php b/app/Services/ModuleRegistryService.php new file mode 100644 index 0000000..75d3784 --- /dev/null +++ b/app/Services/ModuleRegistryService.php @@ -0,0 +1,355 @@ + $module['folder']]); + } + + usort($items, static fn (array $a, array $b): int => ($a['order'] ?? 0) <=> ($b['order'] ?? 0)); + + return $items; + } + + public static function getEnabledProviders(): array + { + $providers = []; + + foreach (self::getEnabledModules() as $module) { + $provider = trim((string) ($module['provider'] ?? '')); + if ($provider !== '') { + $providers[] = $provider; + } + } + + return array_values(array_unique($providers)); + } + + public static function getEnabledModules(): array + { + return array_values(array_filter( + self::getAllModules(), + static fn (array $module): bool => (bool) ($module['enabled'] ?? true) + )); + } + + public static function getAllModules(): array + { + return array_values(self::loadManifest()); + } + + public static function getModule(string $module): ?array + { + $module = trim($module); + if ($module === '') { + return null; + } + + $manifest = self::loadManifest(); + + // Exact match first + if (isset($manifest[$module])) { + return $manifest[$module]; + } + + // Case-insensitive fallback (e.g. "store" → "Store") + foreach ($manifest as $key => $value) { + if (strcasecmp($key, $module) === 0) { + return $value; + } + } + + return null; + } + + public static function getModuleState(string $module, ?array $fallbackConfig = null): array + { + $module = trim($module); + $fallbackConfig = $fallbackConfig ?? []; + + $manifest = self::getModule($module); + if (is_array($manifest)) { + $fallbackConfig = array_merge($manifest, $fallbackConfig); + } + + $fallback = [ + 'enabled' => (bool) ($fallbackConfig['enabled'] ?? true), + 'module_type' => self::normalizeType((string) ($fallbackConfig['module_type'] ?? $fallbackConfig['type'] ?? 'core')), + ]; + + if ($module === '') { + return $fallback; + } + + $states = self::loadStates(); + + return $states[$module] ?? $fallback; + } + + public static function isModuleEnabled(string $module, bool $fallbackEnabled = true): bool + { + $state = self::getModuleState($module, ['enabled' => $fallbackEnabled]); + + return (bool) ($state['enabled'] ?? true); + } + + public static function upsertState(string $module, bool $enabled, string $moduleType): void + { + if (!self::tableExists()) { + return; + } + + $module = trim($module); + if ($module === '') { + return; + } + + try { + ManagedModule::query()->updateOrCreate( + ['module_name' => $module], + [ + 'enabled' => $enabled, + 'module_type' => self::normalizeType($moduleType), + ] + ); + } catch (\Throwable $exception) { + return; + } + + self::flushCache(); + } + + public static function deleteState(string $module): void + { + if (!self::tableExists()) { + return; + } + + try { + ManagedModule::query() + ->where('module_name', trim($module)) + ->delete(); + } catch (\Throwable $exception) { + return; + } + + self::flushCache(); + } + + public static function syncDiscoveredModules(?array $discoveredModules = null): void + { + if (!self::tableExists()) { + return; + } + + $discoveredModules = $discoveredModules ?? self::getAllModules(); + + foreach ($discoveredModules as $module) { + if (!is_array($module)) { + continue; + } + + $moduleName = trim((string) ($module['folder'] ?? $module['module_name'] ?? '')); + if ($moduleName === '') { + continue; + } + + $enabled = (bool) ($module['enabled'] ?? true); + $type = self::normalizeType((string) ($module['module_type'] ?? 'core')); + + try { + ManagedModule::query()->firstOrCreate( + ['module_name' => $moduleName], + [ + 'enabled' => $enabled, + 'module_type' => $type, + ] + ); + } catch (\Throwable $exception) { + continue; + } + } + + self::flushCache(); + } + + public static function flushCache(): void + { + self::$stateCache = null; + self::$manifestCache = null; + } + + private static function loadManifest(): array + { + if (is_array(self::$manifestCache)) { + return self::$manifestCache; + } + + $modulesPath = base_path('app/Modules'); + + if (!is_dir($modulesPath)) { + self::$manifestCache = []; + + return self::$manifestCache; + } + + $states = self::loadStates(); + $manifest = []; + + foreach (glob($modulesPath . '/*', GLOB_ONLYDIR) as $moduleDir) { + $moduleName = basename($moduleDir); + $config = self::readModuleConfig($moduleDir); + $state = $states[$moduleName] ?? []; + $namespace = (string) ($config['namespace'] ?? "Modules\\{$moduleName}"); + + $manifest[$moduleName] = [ + 'folder' => $moduleName, + 'name' => (string) ($config['name'] ?? $moduleName), + 'path' => $moduleDir, + 'config_path' => $moduleDir . DIRECTORY_SEPARATOR . 'module.json', + 'routes_path' => $moduleDir . DIRECTORY_SEPARATOR . 'Http/routes.php', + 'migrations_path' => $moduleDir . DIRECTORY_SEPARATOR . 'Infrastructure/Database/migrations', + 'views_path' => $moduleDir . DIRECTORY_SEPARATOR . 'Resources/views', + 'translations_path' => $moduleDir . DIRECTORY_SEPARATOR . 'Resources/lang', + 'namespace' => $namespace, + 'provider' => self::resolveProviderClass($moduleName, $moduleDir, $namespace, $config), + 'enabled' => (bool) ($state['enabled'] ?? $config['enabled'] ?? true), + 'module_type' => self::normalizeType((string) ($state['module_type'] ?? $config['module_type'] ?? 'core')), + 'routes' => (bool) ($config['routes'] ?? false), + 'migrations' => (bool) ($config['migrations'] ?? false), + 'views' => (bool) ($config['views'] ?? false), + 'translations' => (bool) ($config['translations'] ?? false), + 'admin_crud' => (string) ($config['admin_crud'] ?? ''), + 'admin_menu' => is_array($config['admin_menu'] ?? null) ? $config['admin_menu'] : null, + 'config' => $config, + ]; + } + + self::$manifestCache = $manifest; + + return self::$manifestCache; + } + + private static function loadStates(): array + { + if (is_array(self::$stateCache)) { + return self::$stateCache; + } + + if (!self::tableExists()) { + self::$stateCache = []; + + return self::$stateCache; + } + + try { + self::$stateCache = ManagedModule::query() + ->get(['module_name', 'enabled', 'module_type']) + ->mapWithKeys(function (ManagedModule $module) { + return [ + $module->module_name => [ + 'enabled' => (bool) $module->enabled, + 'module_type' => self::normalizeType((string) $module->module_type), + ], + ]; + }) + ->all(); + } catch (\Throwable $exception) { + self::$stateCache = []; + } + + return self::$stateCache; + } + + private static function tableExists(): bool + { + try { + if (!self::databaseResolverAvailable()) { + return false; + } + + return Schema::hasTable('managed_modules'); + } catch (\Throwable $exception) { + return false; + } + } + + private static function databaseResolverAvailable(): bool + { + try { + return ManagedModule::getConnectionResolver() !== null; + } catch (\Throwable $exception) { + return false; + } + } + + private static function discoverFromFilesystem(): array + { + return self::getAllModules(); + } + + private static function readModuleConfig(string $moduleDir): array + { + $configPath = $moduleDir . DIRECTORY_SEPARATOR . 'module.json'; + + if (!File::exists($configPath)) { + return []; + } + + $decoded = json_decode(File::get($configPath), true); + + return is_array($decoded) ? $decoded : []; + } + + private static function resolveProviderClass(string $moduleName, string $moduleDir, string $namespace, array $config): ?string + { + $configuredProvider = trim((string) ($config['provider'] ?? '')); + if ($configuredProvider !== '' && class_exists($configuredProvider)) { + return $configuredProvider; + } + + $conventionalProvider = "{$namespace}\\Providers\\{$moduleName}ServiceProvider"; + if (class_exists($conventionalProvider)) { + return $conventionalProvider; + } + + $providersDir = $moduleDir . DIRECTORY_SEPARATOR . 'Providers'; + if (!is_dir($providersDir)) { + return null; + } + + foreach (glob($providersDir . DIRECTORY_SEPARATOR . '*ServiceProvider.php') as $providerFile) { + $className = pathinfo($providerFile, PATHINFO_FILENAME); + $fullClass = "{$namespace}\\Providers\\{$className}"; + + if (class_exists($fullClass)) { + return $fullClass; + } + } + + return null; + } + + private static function normalizeType(string $moduleType): string + { + return in_array($moduleType, ['core', 'third_party'], true) ? $moduleType : 'core'; + } +} diff --git a/app/Services/RouteDiscoveryService.php b/app/Services/RouteDiscoveryService.php new file mode 100644 index 0000000..9655624 --- /dev/null +++ b/app/Services/RouteDiscoveryService.php @@ -0,0 +1,105 @@ +getRoutesByName()) + ->map(function ($route) { + $middleware = $route->middleware(); + $uri = $route->uri(); + + return [ + 'name' => $route->getName(), + 'uri' => '/' . ltrim($uri, '/'), + 'methods' => $route->methods(), + 'middleware' => $middleware, + 'is_admin' => Str::startsWith($uri, 'acp/'), + 'is_ucp' => Str::startsWith($uri, 'ucp/'), + 'is_public' => !$this->hasAuthMiddleware($middleware), + 'has_auth' => in_array('auth', $middleware, true), + 'has_permission' => $this->hasPermissionMiddleware($middleware), + 'permissions' => $this->extractPermissions($middleware), + ]; + }) + ->filter(fn($r) => $r['name'] !== null) + ->values(); + + return [ + 'public' => $routes->filter(fn($r) => $r['is_public'] && !$r['is_admin'] && !$r['is_ucp'])->values()->all(), + 'auth' => $routes->filter(fn($r) => $r['has_auth'] && !$r['has_permission'] && !$r['is_admin'] && !$r['is_ucp'])->values()->all(), + 'ucp' => $routes->filter(fn($r) => $r['is_ucp'])->values()->all(), + 'admin' => $routes->filter(fn($r) => $r['is_admin'])->values()->all(), + ]; + } + + /** + * Returns routes suitable for the menu picker (user-facing, non-admin). + */ + public function getRoutesForMenuPicker(): array + { + $all = $this->getAllRoutes(); + + return [ + 'public' => $all['public'], + 'auth' => $all['auth'], + 'ucp' => $all['ucp'], + ]; + } + + /** + * Returns routes grouped by module name. + */ + public function getRoutesByModule(): array + { + $routes = collect(Route::getRoutes()->getRoutesByName()) + ->map(fn($route) => [ + 'name' => $route->getName(), + 'uri' => '/' . ltrim($route->uri(), '/'), + 'methods' => $route->methods(), + 'middleware' => $route->middleware(), + ]) + ->filter(fn($r) => $r['name'] !== null) + ->values(); + + $prefixes = ['armory', 'donate', 'forum', 'store']; + + $byModule = []; + foreach ($prefixes as $prefix) { + $filtered = $routes->filter(fn($r) => Str::startsWith($r['name'], "{$prefix}."))->values()->all(); + if (count($filtered) > 0) { + $byModule[$prefix] = $filtered; + } + } + + return $byModule; + } + + private function hasAuthMiddleware(array $middleware): bool + { + return in_array('auth', $middleware, true) + || in_array('auth:api', $middleware, true); + } + + private function hasPermissionMiddleware(array $middleware): bool + { + return collect($middleware)->contains(fn($m) => Str::startsWith($m, 'permission:')); + } + + private function extractPermissions(array $middleware): array + { + return collect($middleware) + ->filter(fn($m) => Str::startsWith($m, 'permission:')) + ->map(fn($m) => Str::after($m, 'permission:')) + ->values() + ->all(); + } +} diff --git a/app/Services/SystemInfoService.php b/app/Services/SystemInfoService.php new file mode 100644 index 0000000..4c5450a --- /dev/null +++ b/app/Services/SystemInfoService.php @@ -0,0 +1,140 @@ + [ + 'label' => 'PHP Version', + 'value' => PHP_VERSION, + 'icon' => 'fab fa-php', + 'color' => 'purple', + ], + 'laravel' => [ + 'label' => 'Laravel', + 'value' => app()->version(), + 'icon' => 'fab fa-laravel', + 'color' => 'red', + ], + 'nexuscms' => [ + 'label' => 'NexusCMS', + 'value' => $this->getFullVersion(), + 'icon' => 'fas fa-cubes', + 'color' => 'blue', + ], + 'database' => [ + 'label' => 'Database', + 'value' => $this->getDatabaseInfo(), + 'icon' => 'fas fa-database', + 'color' => 'green', + ], + 'cache' => [ + 'label' => 'Cache Driver', + 'value' => config('cache.default'), + 'icon' => 'fas fa-bolt', + 'color' => 'yellow', + ], + 'queue' => [ + 'label' => 'Queue Driver', + 'value' => config('queue.default'), + 'icon' => 'fas fa-clock', + 'color' => 'cyan', + ], + 'environment' => [ + 'label' => 'Environment', + 'value' => app()->environment(), + 'icon' => 'fas fa-server', + 'color' => $this->isProduction() ? 'red' : 'green', + ], + 'timezone' => [ + 'label' => 'Timezone', + 'value' => config('app.timezone'), + 'icon' => 'fas fa-globe', + 'color' => 'indigo', + ], + ]; + } + + public function getDatabaseInfo(): string + { + $driver = config('database.default'); + $connections = config('database.connections'); + + if (isset($connections[$driver])) { + $db = $connections[$driver]['database'] ?? 'unknown'; + return ucfirst($driver) . " ({$db})"; + } + + return ucfirst($driver); + } + + public function isProduction(): bool + { + return app()->environment('production'); + } + + /** + * Get the bare version string, e.g. "0.1.6-alpha.5". + */ + public function getVersion(): string + { + return (string) config('app.version', '0.0.0'); + } + + /** + * Get the release codename, e.g. "Anvil". + */ + public function getCodename(): string + { + return (string) config('app.codename', ''); + } + + /** + * Get the version + codename combined for display, e.g. "0.1.6 · Anvil". + * Falls back to just the version if no codename is configured. + */ + public function getFullVersion(): string + { + $version = $this->getVersion(); + $codename = $this->getCodename(); + + return $codename !== '' ? "{$version} · {$codename}" : $version; + } + + public function isDebugEnabled(): bool + { + return config('app.debug') === true; + } + + public function getUptime(): string + { + if (!function_exists('shell_exec')) { + return 'N/A'; + } + + $uptime = @shell_exec('uptime -p 2>&1'); + if ($uptime === null) { + // Windows + $uptime = @shell_exec('net stats srv 2>&1'); + if ($uptime && preg_match('/Statistics since (\d{1,2}\/\d{1,2}\/\d{4})/', $uptime, $m)) { + return 'Since ' . $m[1]; + } + return 'N/A'; + } + + return trim($uptime) ?: 'N/A'; + } + + public function getServerSoftware(): string + { + return $_SERVER['SERVER_SOFTWARE'] ?? $_SERVER['SERVER_SIGNATURE'] ?? 'Unknown'; + } +} \ No newline at end of file diff --git a/app/Traits/Cacheable.php b/app/Traits/Cacheable.php index 15592fe..bf77776 100755 --- a/app/Traits/Cacheable.php +++ b/app/Traits/Cacheable.php @@ -19,7 +19,9 @@ trait Cacheable protected function logDriver() { $driver = config('cache.default'); - Log::debug("[Cacheable] Using cache driver: {$driver}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] Using cache driver: {$driver}"); + } return $driver; } @@ -32,11 +34,15 @@ public function getCached($id) $driver = $this->logDriver(); if (Cache::has($cacheKey)) { - Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + } return Cache::get($cacheKey); } - Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching from DB"); + if (app()->environment('local')) { + Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching from DB"); + } $data = static::query()->find($id); Cache::put($cacheKey, $data, $this->cacheTTL * 60); @@ -52,11 +58,15 @@ public function getCachedByField(string $field, $value) $driver = $this->logDriver(); if (Cache::has($cacheKey)) { - Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + } return Cache::get($cacheKey); } - Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching from DB"); + if (app()->environment('local')) { + Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching from DB"); + } $data = static::query()->where($field, $value)->first(); Cache::put($cacheKey, $data, $this->cacheTTL * 60); @@ -70,15 +80,19 @@ public function getCachedList(Builder $query, ?int $perPage) { $query = $query ?: static::query(); $perPage = $perPage ?: request()->get('per_page', 15); - $cacheKey = $this->getListCacheKey($perPage, $query->toSql()); + $cacheKey = $this->getListCacheKey($perPage, $query->toSql(), $query->getBindings()); $driver = $this->logDriver(); if (Cache::has($cacheKey)) { - Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] HIT ({$driver}) key={$cacheKey}"); + } return Cache::get($cacheKey); } - Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching list from DB"); + if (app()->environment('local')) { + Log::debug("[Cacheable] MISS ({$driver}) key={$cacheKey} → fetching list from DB"); + } $data = $query->paginate($perPage); Cache::put($cacheKey, $data, $this->cacheTTL * 60); @@ -91,19 +105,25 @@ public function getCachedList(Builder $query, ?int $perPage) public function clearCache() { $driver = config('cache.default'); - Log::debug("[Cacheable] clearCache() for model=" . static::class . " id=" . ($this->id ?? 'null') . " driver={$driver}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] clearCache() for model=" . static::class . " id=" . ($this->id ?? 'null') . " driver={$driver}"); + } if ($this->id) { $key = $this->getCacheKey($this->id); Cache::forget($key); - Log::debug("[Cacheable] Cleared cache key={$key}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] Cleared cache key={$key}"); + } } $store = Cache::getStore(); if (method_exists($store, 'tags')) { $tag = $this->getCacheTag(); Cache::tags($tag)->flush(); - Log::debug("[Cacheable] Flushed cache tag={$tag}"); + if (app()->environment('local')) { + Log::debug("[Cacheable] Flushed cache tag={$tag}"); + } } } @@ -113,12 +133,16 @@ public function clearCache() protected static function bootCacheable() { static::saved(function ($model) { - Log::debug("[Cacheable] bootCacheable() saved() triggered for " . static::class); + if (app()->environment('local')) { + Log::debug("[Cacheable] bootCacheable() saved() triggered for " . static::class); + } $model->clearCache(); }); static::deleted(function ($model) { - Log::debug("[Cacheable] bootCacheable() deleted() triggered for " . static::class); + if (app()->environment('local')) { + Log::debug("[Cacheable] bootCacheable() deleted() triggered for " . static::class); + } $model->clearCache(); }); } @@ -132,15 +156,19 @@ protected function getCacheKey($identifier): string } /** - * Get cache key for list + * Get cache key for list — includes bindings and a model-level version counter + * so that any save/delete on the model busts all cached list pages at once. */ - protected function getListCacheKey($perPage, $query): string + protected function getListCacheKey($perPage, $query, array $bindings = []): string { + $version = \Illuminate\Support\Facades\Cache::get($this->getCacheTag() . '.list.version', 1); + return sprintf( - '%s.list.%s.%s.%s', + '%s.list.v%s.%s.%s.%s', $this->getCacheTag(), + $version, $perPage, - md5($query), + md5($query . json_encode($bindings)), request()->page ?? 1 ); } diff --git a/bootstrap/app.php b/bootstrap/app.php index d709ffb..e99aa04 100755 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -11,8 +11,16 @@ health: '/up', ) ->withMiddleware(function (Middleware $middleware) { + $middleware->web(append: [ + \App\Http\Middleware\CheckMaintenanceMode::class, + \App\Http\Middleware\SecurityHeaders::class, + ]); + $middleware->alias([ 'role' => \App\Http\Middleware\CheckRole::class, + 'permission' => \App\Http\Middleware\Permission::class, + 'track.analytics' => \App\Http\Middleware\TrackAnalytics::class, + 'install.available' => \App\Http\Middleware\EnsureInstallerIsAvailable::class, ]); }) ->withExceptions(function (Exceptions $exceptions) { diff --git a/bootstrap/providers.php b/bootstrap/providers.php index df3195a..a0784c8 100755 --- a/bootstrap/providers.php +++ b/bootstrap/providers.php @@ -1,7 +1,11 @@ =7.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0", + "squizlabs/php_codesniffer": "^3.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Braintree\\": "lib/Braintree" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Braintree", + "homepage": "https://www.braintreepayments.com" + } + ], + "description": "Braintree PHP Client Library", + "support": { + "issues": "https://github.com/braintree/braintree_php/issues", + "source": "https://github.com/braintree/braintree_php/tree/6.35.0" + }, + "time": "2026-05-27T19:15:31+00:00" + }, { "name": "brick/math", - "version": "0.14.0", + "version": "0.14.8", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2" + "reference": "63422359a44b7f06cae63c3b429b59e8efcc0629" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", - "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", + "url": "https://api.github.com/repos/brick/math/zipball/63422359a44b7f06cae63c3b429b59e8efcc0629", + "reference": "63422359a44b7f06cae63c3b429b59e8efcc0629", "shasum": "" }, "require": { @@ -56,7 +182,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.0" + "source": "https://github.com/brick/math/tree/0.14.8" }, "funding": [ { @@ -64,7 +190,7 @@ "type": "github" } ], - "time": "2025-08-29T12:40:03+00:00" + "time": "2026-02-10T14:33:43+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -379,26 +505,26 @@ }, { "name": "doctrine/sql-formatter", - "version": "1.5.2", + "version": "1.5.4", "source": { "type": "git", "url": "https://github.com/doctrine/sql-formatter.git", - "reference": "d6d00aba6fd2957fe5216fe2b7673e9985db20c8" + "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/d6d00aba6fd2957fe5216fe2b7673e9985db20c8", - "reference": "d6d00aba6fd2957fe5216fe2b7673e9985db20c8", + "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/9563949f5cd3bd12a17d12fb980528bc141c5806", + "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806", "shasum": "" }, "require": { "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^12", - "ergebnis/phpunit-slow-test-detector": "^2.14", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.5" + "doctrine/coding-standard": "^14", + "ergebnis/phpunit-slow-test-detector": "^2.20", + "phpstan/phpstan": "^2.1.31", + "phpunit/phpunit": "^10.5.58" }, "bin": [ "bin/sql-formatter" @@ -428,35 +554,189 @@ ], "support": { "issues": "https://github.com/doctrine/sql-formatter/issues", - "source": "https://github.com/doctrine/sql-formatter/tree/1.5.2" + "source": "https://github.com/doctrine/sql-formatter/tree/1.5.4" + }, + "time": "2026-02-08T16:21:46+00:00" + }, + { + "name": "dompdf/dompdf", + "version": "v3.1.5", + "source": { + "type": "git", + "url": "https://github.com/dompdf/dompdf.git", + "reference": "f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496", + "reference": "f11ead23a8a76d0ff9bbc6c7c8fd7e05ca328496", + "shasum": "" + }, + "require": { + "dompdf/php-font-lib": "^1.0.0", + "dompdf/php-svg-lib": "^1.0.0", + "ext-dom": "*", + "ext-mbstring": "*", + "masterminds/html5": "^2.0", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "ext-gd": "*", + "ext-json": "*", + "ext-zip": "*", + "mockery/mockery": "^1.3", + "phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11", + "squizlabs/php_codesniffer": "^3.5", + "symfony/process": "^4.4 || ^5.4 || ^6.2 || ^7.0" + }, + "suggest": { + "ext-gd": "Needed to process images", + "ext-gmagick": "Improves image processing performance", + "ext-imagick": "Improves image processing performance", + "ext-zlib": "Needed for pdf stream compression" + }, + "type": "library", + "autoload": { + "psr-4": { + "Dompdf\\": "src/" + }, + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "authors": [ + { + "name": "The Dompdf Community", + "homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md" + } + ], + "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", + "homepage": "https://github.com/dompdf/dompdf", + "support": { + "issues": "https://github.com/dompdf/dompdf/issues", + "source": "https://github.com/dompdf/dompdf/tree/v3.1.5" + }, + "time": "2026-03-03T13:54:37+00:00" + }, + { + "name": "dompdf/php-font-lib", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/dompdf/php-font-lib.git", + "reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/a6e9a688a2a80016ac080b97be73d3e10c444c9a", + "reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12" + }, + "type": "library", + "autoload": { + "psr-4": { + "FontLib\\": "src/FontLib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "The FontLib Community", + "homepage": "https://github.com/dompdf/php-font-lib/blob/master/AUTHORS.md" + } + ], + "description": "A library to read, parse, export and make subsets of different types of font files.", + "homepage": "https://github.com/dompdf/php-font-lib", + "support": { + "issues": "https://github.com/dompdf/php-font-lib/issues", + "source": "https://github.com/dompdf/php-font-lib/tree/1.0.2" + }, + "time": "2026-01-20T14:10:26+00:00" + }, + { + "name": "dompdf/php-svg-lib", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/dompdf/php-svg-lib.git", + "reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/8259ffb930817e72b1ff1caef5d226501f3dfeb1", + "reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^7.1 || ^8.0", + "sabberworm/php-css-parser": "^8.4 || ^9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11" + }, + "type": "library", + "autoload": { + "psr-4": { + "Svg\\": "src/Svg" + } }, - "time": "2025-01-24T11:45:48+00:00" + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "The SvgLib Community", + "homepage": "https://github.com/dompdf/php-svg-lib/blob/master/AUTHORS.md" + } + ], + "description": "A library to read, parse and export to PDF SVG files.", + "homepage": "https://github.com/dompdf/php-svg-lib", + "support": { + "issues": "https://github.com/dompdf/php-svg-lib/issues", + "source": "https://github.com/dompdf/php-svg-lib/tree/1.0.2" + }, + "time": "2026-01-02T16:01:13+00:00" }, { "name": "dragonmantank/cron-expression", - "version": "v3.4.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/dragonmantank/cron-expression.git", - "reference": "8c784d071debd117328803d86b2097615b457500" + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/8c784d071debd117328803d86b2097615b457500", - "reference": "8c784d071debd117328803d86b2097615b457500", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013", "shasum": "" }, "require": { - "php": "^7.2|^8.0", - "webmozart/assert": "^1.0" + "php": "^8.2|^8.3|^8.4|^8.5" }, "replace": { "mtdowling/cron-expression": "^1.0" }, "require-dev": { - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.0", - "phpunit/phpunit": "^7.0|^8.0|^9.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.32|^2.1.31", + "phpunit/phpunit": "^8.5.48|^9.0" }, "type": "library", "extra": { @@ -487,7 +767,7 @@ ], "support": { "issues": "https://github.com/dragonmantank/cron-expression/issues", - "source": "https://github.com/dragonmantank/cron-expression/tree/v3.4.0" + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.0" }, "funding": [ { @@ -495,7 +775,7 @@ "type": "github" } ], - "time": "2024-10-09T13:47:03+00:00" + "time": "2025-10-31T18:51:33+00:00" }, { "name": "egulias/email-validator", @@ -566,31 +846,31 @@ }, { "name": "fruitcake/php-cors", - "version": "v1.3.0", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/fruitcake/php-cors.git", - "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", - "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", "shasum": "" }, "require": { - "php": "^7.4|^8.0", - "symfony/http-foundation": "^4.4|^5.4|^6|^7" + "php": "^8.1", + "symfony/http-foundation": "^5.4|^6.4|^7.3|^8" }, "require-dev": { - "phpstan/phpstan": "^1.4", + "phpstan/phpstan": "^2", "phpunit/phpunit": "^9", - "squizlabs/php_codesniffer": "^3.5" + "squizlabs/php_codesniffer": "^4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2-dev" + "dev-master": "1.3-dev" } }, "autoload": { @@ -621,7 +901,7 @@ ], "support": { "issues": "https://github.com/fruitcake/php-cors/issues", - "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" + "source": "https://github.com/fruitcake/php-cors/tree/v1.4.0" }, "funding": [ { @@ -633,28 +913,28 @@ "type": "github" } ], - "time": "2023-10-12T05:21:21+00:00" + "time": "2025-12-03T09:33:47+00:00" }, { "name": "graham-campbell/result-type", - "version": "v1.1.3", + "version": "v1.1.4", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "3ba905c11371512af9d9bdd27d99b782216b6945" + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945", - "reference": "3ba905c11371512af9d9bdd27d99b782216b6945", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9.3" + "phpoption/phpoption": "^1.9.5" }, "require-dev": { - "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" }, "type": "library", "autoload": { @@ -683,7 +963,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" }, "funding": [ { @@ -695,20 +975,20 @@ "type": "tidelift" } ], - "time": "2024-07-20T21:45:45+00:00" + "time": "2025-12-27T19:43:20+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.10.0", + "version": "7.10.5", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + "reference": "7c8d84b39e680315f687e8662a9d6fb0865c5148" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", - "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7c8d84b39e680315f687e8662a9d6fb0865c5148", + "reference": "7c8d84b39e680315f687e8662a9d6fb0865c5148", "shasum": "" }, "require": { @@ -726,8 +1006,9 @@ "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", "guzzle/client-integration-tests": "3.0.2", + "guzzlehttp/test-server": "^0.4", "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "phpunit/phpunit": "^8.5.52 || ^9.6.34", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -805,7 +1086,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + "source": "https://github.com/guzzle/guzzle/tree/7.10.5" }, "funding": [ { @@ -821,20 +1102,20 @@ "type": "tidelift" } ], - "time": "2025-08-23T22:36:01+00:00" + "time": "2026-05-27T11:53:46+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.3.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "481557b130ef3790cf82b713667b43030dc9c957" + "reference": "09e8a212562fb1fb6a512c4156ed71525969d6c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", - "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "url": "https://api.github.com/repos/guzzle/promises/zipball/09e8a212562fb1fb6a512c4156ed71525969d6c2", + "reference": "09e8a212562fb1fb6a512c4156ed71525969d6c2", "shasum": "" }, "require": { @@ -842,7 +1123,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.44 || ^9.6.25" + "phpunit/phpunit": "^8.5.52 || ^9.6.34" }, "type": "library", "extra": { @@ -888,7 +1169,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.3.0" + "source": "https://github.com/guzzle/promises/tree/2.4.1" }, "funding": [ { @@ -904,20 +1185,20 @@ "type": "tidelift" } ], - "time": "2025-08-22T14:34:08+00:00" + "time": "2026-05-20T22:57:30+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.8.0", + "version": "2.10.4", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "21dc724a0583619cd1652f673303492272778051" + "reference": "d2a1a094e396da8957e797489fddaf860c340cfc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051", - "reference": "21dc724a0583619cd1652f673303492272778051", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/d2a1a094e396da8957e797489fddaf860c340cfc", + "reference": "d2a1a094e396da8957e797489fddaf860c340cfc", "shasum": "" }, "require": { @@ -932,8 +1213,9 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "0.9.0", - "phpunit/phpunit": "^8.5.44 || ^9.6.25" + "http-interop/http-factory-tests": "1.1.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.52 || ^9.6.34" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -1004,7 +1286,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.8.0" + "source": "https://github.com/guzzle/psr7/tree/2.10.4" }, "funding": [ { @@ -1020,20 +1302,20 @@ "type": "tidelift" } ], - "time": "2025-08-23T21:21:41+00:00" + "time": "2026-05-29T12:59:07+00:00" }, { "name": "guzzlehttp/uri-template", - "version": "v1.0.5", + "version": "v1.0.6", "source": { "type": "git", "url": "https://github.com/guzzle/uri-template.git", - "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + "reference": "eef7f87bab6f204eba3c39224d8075c70c637946" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", - "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/eef7f87bab6f204eba3c39224d8075c70c637946", + "reference": "eef7f87bab6f204eba3c39224d8075c70c637946", "shasum": "" }, "require": { @@ -1042,7 +1324,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "phpunit/phpunit": "^8.5.52 || ^9.6.34", "uri-template/tests": "1.0.0" }, "type": "library", @@ -1090,7 +1372,7 @@ ], "support": { "issues": "https://github.com/guzzle/uri-template/issues", - "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + "source": "https://github.com/guzzle/uri-template/tree/v1.0.6" }, "funding": [ { @@ -1106,28 +1388,94 @@ "type": "tidelift" } ], - "time": "2025-08-22T14:27:06+00:00" + "time": "2026-05-23T22:00:21+00:00" + }, + { + "name": "laravel/boost", + "version": "v2.4.8", + "source": { + "type": "git", + "url": "https://github.com/laravel/boost.git", + "reference": "d11d720cf9537f8d236a11d973e99563a598ec9c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/boost/zipball/d11d720cf9537f8d236a11d973e99563a598ec9c", + "reference": "d11d720cf9537f8d236a11d973e99563a598ec9c", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^7.9", + "illuminate/console": "^11.45.3|^12.41.1|^13.0", + "illuminate/contracts": "^11.45.3|^12.41.1|^13.0", + "illuminate/routing": "^11.45.3|^12.41.1|^13.0", + "illuminate/support": "^11.45.3|^12.41.1|^13.0", + "laravel/mcp": "^0.5.1|^0.6.0|~0.7.0,<0.7.1", + "laravel/prompts": "^0.3.10", + "laravel/roster": "^0.5.0", + "php": "^8.2" + }, + "require-dev": { + "laravel/pint": "^1.27.0", + "mockery/mockery": "^1.6.12", + "orchestra/testbench": "^9.15.0|^10.6|^11.0", + "pestphp/pest": "^2.36.0|^3.8.4|^4.1.5", + "phpstan/phpstan": "^2.1.27", + "rector/rector": "^2.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Boost\\BoostServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Boost\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.", + "homepage": "https://github.com/laravel/boost", + "keywords": [ + "ai", + "dev", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/boost/issues", + "source": "https://github.com/laravel/boost" + }, + "time": "2026-05-19T20:09:50+00:00" }, { "name": "laravel/framework", - "version": "v12.34.0", + "version": "v13.12.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "f9ec5a5d88bc8c468f17b59f88e05c8ac3c8d687" + "reference": "6ac27a7fcfa728250c9f77921cb8fb955546b591" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/f9ec5a5d88bc8c468f17b59f88e05c8ac3c8d687", - "reference": "f9ec5a5d88bc8c468f17b59f88e05c8ac3c8d687", + "url": "https://api.github.com/repos/laravel/framework/zipball/6ac27a7fcfa728250c9f77921cb8fb955546b591", + "reference": "6ac27a7fcfa728250c9f77921cb8fb955546b591", "shasum": "" }, "require": { - "brick/math": "^0.11|^0.12|^0.13|^0.14", + "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17", "composer-runtime-api": "^2.2", "doctrine/inflector": "^2.0.5", "dragonmantank/cron-expression": "^3.4", - "egulias/email-validator": "^3.2.1|^4.0", + "egulias/email-validator": "^4.0", "ext-ctype": "*", "ext-filter": "*", "ext-hash": "*", @@ -1137,35 +1485,36 @@ "ext-tokenizer": "*", "fruitcake/php-cors": "^1.3", "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/promises": "^2.0.3", "guzzlehttp/uri-template": "^1.0", "laravel/prompts": "^0.3.0", - "laravel/serializable-closure": "^1.3|^2.0", - "league/commonmark": "^2.7", + "laravel/serializable-closure": "^2.0.10", + "league/commonmark": "^2.8.1", "league/flysystem": "^3.25.1", "league/flysystem-local": "^3.25.1", "league/uri": "^7.5.1", "monolog/monolog": "^3.0", "nesbot/carbon": "^3.8.4", "nunomaduro/termwind": "^2.0", - "php": "^8.2", - "psr/container": "^1.1.1|^2.0.1", - "psr/log": "^1.0|^2.0|^3.0", - "psr/simple-cache": "^1.0|^2.0|^3.0", + "php": "^8.3", + "psr/container": "^1.1.1 || ^2.0.1", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", "ramsey/uuid": "^4.7", - "symfony/console": "^7.2.0", - "symfony/error-handler": "^7.2.0", - "symfony/finder": "^7.2.0", - "symfony/http-foundation": "^7.2.0", - "symfony/http-kernel": "^7.2.0", - "symfony/mailer": "^7.2.0", - "symfony/mime": "^7.2.0", - "symfony/polyfill-php83": "^1.33", - "symfony/polyfill-php84": "^1.33", - "symfony/polyfill-php85": "^1.33", - "symfony/process": "^7.2.0", - "symfony/routing": "^7.2.0", - "symfony/uid": "^7.2.0", - "symfony/var-dumper": "^7.2.0", + "symfony/console": "^7.4.0 || ^8.0.0", + "symfony/error-handler": "^7.4.0 || ^8.0.0", + "symfony/finder": "^7.4.0 || ^8.0.0", + "symfony/http-foundation": "^7.4.0 || ^8.0.0", + "symfony/http-kernel": "^7.4.0 || ^8.0.0", + "symfony/mailer": "^7.4.0 || ^8.0.0", + "symfony/mime": "^7.4.0 || ^8.0.0", + "symfony/polyfill-php84": "^1.36", + "symfony/polyfill-php85": "^1.36", + "symfony/polyfill-php86": "^1.36", + "symfony/process": "^7.4.5 || ^8.0.5", + "symfony/routing": "^7.4.0 || ^8.0.0", + "symfony/uid": "^7.4.0 || ^8.0.0", + "symfony/var-dumper": "^7.4.0 || ^8.0.0", "tijsverkoyen/css-to-inline-styles": "^2.2.5", "vlucas/phpdotenv": "^5.6.1", "voku/portable-ascii": "^2.0.2" @@ -1174,9 +1523,9 @@ "tightenco/collect": "<5.5.33" }, "provide": { - "psr/container-implementation": "1.1|2.0", - "psr/log-implementation": "1.0|2.0|3.0", - "psr/simple-cache-implementation": "1.0|2.0|3.0" + "psr/container-implementation": "1.1 || 2.0", + "psr/log-implementation": "1.0 || 2.0 || 3.0", + "psr/simple-cache-implementation": "1.0 || 2.0 || 3.0" }, "replace": { "illuminate/auth": "self.version", @@ -1207,6 +1556,7 @@ "illuminate/process": "self.version", "illuminate/queue": "self.version", "illuminate/redis": "self.version", + "illuminate/reflection": "self.version", "illuminate/routing": "self.version", "illuminate/session": "self.version", "illuminate/support": "self.version", @@ -1221,8 +1571,7 @@ "aws/aws-sdk-php": "^3.322.9", "ext-gmp": "*", "fakerphp/faker": "^1.24", - "guzzlehttp/promises": "^2.0.3", - "guzzlehttp/psr7": "^2.4", + "guzzlehttp/psr7": "^2.9", "laravel/pint": "^1.18", "league/flysystem-aws-s3-v3": "^3.25.1", "league/flysystem-ftp": "^3.25.1", @@ -1231,22 +1580,23 @@ "league/flysystem-sftp-v3": "^3.25.1", "mockery/mockery": "^1.6.10", "opis/json-schema": "^2.4.1", - "orchestra/testbench-core": "^10.7.0", - "pda/pheanstalk": "^5.0.6|^7.0.0", + "orchestra/testbench-core": "^11.0.0", + "pda/pheanstalk": "^7.0.0 || ^8.0.0", "php-http/discovery": "^1.15", "phpstan/phpstan": "^2.0", - "phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1", - "predis/predis": "^2.3|^3.0", - "resend/resend-php": "^0.10.0", - "symfony/cache": "^7.2.0", - "symfony/http-client": "^7.2.0", - "symfony/psr-http-message-bridge": "^7.2.0", - "symfony/translation": "^7.2.0" + "phpunit/phpunit": "^11.5.50 || ^12.5.8 || ^13.0.3", + "predis/predis": "^2.3 || ^3.0", + "rector/rector": "^2.3", + "resend/resend-php": "^1.0", + "symfony/cache": "^7.4.0 || ^8.0.0", + "symfony/http-client": "^7.4.0 || ^8.0.0", + "symfony/psr-http-message-bridge": "^7.4.0 || ^8.0.0", + "symfony/translation": "^7.4.0 || ^8.0.0" }, "suggest": { "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", - "brianium/paratest": "Required to run tests in parallel (^7.0|^8.0).", + "brianium/paratest": "Required to run tests in parallel (^7.0 || ^8.0).", "ext-apcu": "Required to use the APC cache driver.", "ext-fileinfo": "Required to use the Filesystem class.", "ext-ftp": "Required to use the Flysystem FTP driver.", @@ -1255,7 +1605,7 @@ "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", "ext-pdo": "Required to use all database features.", "ext-posix": "Required to use all features of the queue worker.", - "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0 || ^5.0 || ^6.0).", "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", "filp/whoops": "Required for friendly error pages in development (^2.14.3).", "laravel/tinker": "Required to use the tinker console command (^2.0).", @@ -1265,24 +1615,25 @@ "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", "mockery/mockery": "Required to use mocking (^1.6).", - "pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^7.0 || ^8.0).", "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", - "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).", - "predis/predis": "Required to use the predis connector (^2.3|^3.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^11.5.50 || ^12.5.8 || ^13.0.3).", + "predis/predis": "Required to use the predis connector (^2.3 || ^3.0).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", - "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).", - "symfony/cache": "Required to PSR-6 cache bridge (^7.2).", - "symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).", - "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).", - "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).", - "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).", - "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)." + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0 || ^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0 || ^1.0).", + "spatie/fork": "Required to use the 'fork' concurrency driver (^1.2).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.4 || ^8.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.4 || ^8.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.4 || ^8.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.4 || ^8.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.4 || ^8.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.4 || ^8.0)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "12.x-dev" + "dev-master": "13.0.x-dev" } }, "autoload": { @@ -1293,6 +1644,7 @@ "src/Illuminate/Filesystem/functions.php", "src/Illuminate/Foundation/helpers.php", "src/Illuminate/Log/functions.php", + "src/Illuminate/Reflection/helpers.php", "src/Illuminate/Support/functions.php", "src/Illuminate/Support/helpers.php" ], @@ -1301,7 +1653,8 @@ "Illuminate\\Support\\": [ "src/Illuminate/Macroable/", "src/Illuminate/Collections/", - "src/Illuminate/Conditionable/" + "src/Illuminate/Conditionable/", + "src/Illuminate/Reflection/" ] } }, @@ -1325,50 +1678,123 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2025-10-14T13:58:31+00:00" + "time": "2026-05-26T23:39:26+00:00" }, { - "name": "laravel/prompts", - "version": "v0.3.7", + "name": "laravel/mcp", + "version": "v0.7.0", "source": { "type": "git", - "url": "https://github.com/laravel/prompts.git", - "reference": "a1891d362714bc40c8d23b0b1d7090f022ea27cc" + "url": "https://github.com/laravel/mcp.git", + "reference": "3513b4feca5f1678be4d2261dcfa8e456436d02a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/a1891d362714bc40c8d23b0b1d7090f022ea27cc", - "reference": "a1891d362714bc40c8d23b0b1d7090f022ea27cc", + "url": "https://api.github.com/repos/laravel/mcp/zipball/3513b4feca5f1678be4d2261dcfa8e456436d02a", + "reference": "3513b4feca5f1678be4d2261dcfa8e456436d02a", "shasum": "" }, "require": { - "composer-runtime-api": "^2.2", + "ext-json": "*", "ext-mbstring": "*", - "php": "^8.1", - "symfony/console": "^6.2|^7.0" - }, - "conflict": { - "illuminate/console": ">=10.17.0 <10.25.0", - "laravel/framework": ">=10.17.0 <10.25.0" + "illuminate/console": "^11.45.3|^12.41.1|^13.0", + "illuminate/container": "^11.45.3|^12.41.1|^13.0", + "illuminate/contracts": "^11.45.3|^12.41.1|^13.0", + "illuminate/http": "^11.45.3|^12.41.1|^13.0", + "illuminate/json-schema": "^12.41.1|^13.0", + "illuminate/routing": "^11.45.3|^12.41.1|^13.0", + "illuminate/support": "^11.45.3|^12.41.1|^13.0", + "illuminate/validation": "^11.45.3|^12.41.1|^13.0", + "php": "^8.2" }, "require-dev": { - "illuminate/collections": "^10.0|^11.0|^12.0", - "mockery/mockery": "^1.5", - "pestphp/pest": "^2.3|^3.4", - "phpstan/phpstan": "^1.12.28", - "phpstan/phpstan-mockery": "^1.1.3" - }, - "suggest": { - "ext-pcntl": "Required for the spinner to be animated." + "laravel/pint": "^1.20", + "orchestra/testbench": "^9.15|^10.8|^11.0", + "pestphp/pest": "^3.8.5|^4.3.2", + "phpstan/phpstan": "^2.1.27", + "rector/rector": "^2.2.4" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "0.3.x-dev" - } - }, - "autoload": { - "files": [ + "laravel": { + "aliases": { + "Mcp": "Laravel\\Mcp\\Server\\Facades\\Mcp" + }, + "providers": [ + "Laravel\\Mcp\\Server\\McpServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Mcp\\": "src/", + "Laravel\\Mcp\\Server\\": "src/Server/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Rapidly build MCP servers for your Laravel applications.", + "homepage": "https://github.com/laravel/mcp", + "keywords": [ + "laravel", + "mcp" + ], + "support": { + "issues": "https://github.com/laravel/mcp/issues", + "source": "https://github.com/laravel/mcp" + }, + "time": "2026-04-21T10:23:03+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.18", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/a19af51bb144bf87f08397921fa619f85c7d4e72", + "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-mbstring": "*", + "php": "^8.1", + "symfony/console": "^6.2|^7.0|^8.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "illuminate/collections": "^10.0|^11.0|^12.0|^13.0", + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3|^3.4|^4.0", + "phpstan/phpstan": "^1.12.28", + "phpstan/phpstan-mockery": "^1.1.3" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "autoload": { + "files": [ "src/helpers.php" ], "psr-4": { @@ -1382,44 +1808,45 @@ "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.7" + "source": "https://github.com/laravel/prompts/tree/v0.3.18" }, - "time": "2025-09-19T13:47:56+00:00" + "time": "2026-05-19T00:47:18+00:00" }, { "name": "laravel/pulse", - "version": "v1.4.3", + "version": "v1.7.3", "source": { "type": "git", "url": "https://github.com/laravel/pulse.git", - "reference": "8c57f30aa6e094c138cd191314fe060d60773c14" + "reference": "dfd3b8e98cd1ada8d105e528da0afe1bbfe7d990" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pulse/zipball/8c57f30aa6e094c138cd191314fe060d60773c14", - "reference": "8c57f30aa6e094c138cd191314fe060d60773c14", + "url": "https://api.github.com/repos/laravel/pulse/zipball/dfd3b8e98cd1ada8d105e528da0afe1bbfe7d990", + "reference": "dfd3b8e98cd1ada8d105e528da0afe1bbfe7d990", "shasum": "" }, "require": { "doctrine/sql-formatter": "^1.4.1", "guzzlehttp/promises": "^1.0|^2.0", - "illuminate/auth": "^10.48.4|^11.0.8|^12.0", - "illuminate/cache": "^10.48.4|^11.0.8|^12.0", - "illuminate/config": "^10.48.4|^11.0.8|^12.0", - "illuminate/console": "^10.48.4|^11.0.8|^12.0", - "illuminate/contracts": "^10.48.4|^11.0.8|^12.0", - "illuminate/database": "^10.48.4|^11.0.8|^12.0", - "illuminate/events": "^10.48.4|^11.0.8|^12.0", - "illuminate/http": "^10.48.4|^11.0.8|^12.0", - "illuminate/queue": "^10.48.4|^11.0.8|^12.0", - "illuminate/redis": "^10.48.4|^11.0.8|^12.0", - "illuminate/routing": "^10.48.4|^11.0.8|^12.0", - "illuminate/support": "^10.48.4|^11.0.8|^12.0", - "illuminate/view": "^10.48.4|^11.0.8|^12.0", - "livewire/livewire": "^3.6.4", + "illuminate/auth": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/cache": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/config": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/console": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/contracts": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/database": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/events": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/http": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/queue": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/redis": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/routing": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/support": "^10.48.4|^11.0.8|^12.0|^13.0", + "illuminate/view": "^10.48.4|^11.0.8|^12.0|^13.0", + "laravel/sentinel": "^1.0", + "livewire/livewire": "^3.6.4|^4.0", "nesbot/carbon": "^2.67|^3.0", "php": "^8.1", - "symfony/console": "^6.0|^7.0" + "symfony/console": "^6.0|^7.0|^8.0" }, "conflict": { "nunomaduro/collision": "<7.7.0" @@ -1427,9 +1854,9 @@ "require-dev": { "guzzlehttp/guzzle": "^7.7", "mockery/mockery": "^1.0", - "orchestra/testbench": "^8.23.1|^9.0|^10.0", - "pestphp/pest": "^2.0", - "pestphp/pest-plugin-laravel": "^2.2", + "orchestra/testbench": "^8.36|^9.15|^10.8|^11.0", + "pestphp/pest": "^2.0|^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^2.2|^3.0|^4.0", "phpstan/phpstan": "^1.12.21", "predis/predis": "^1.0|^2.0" }, @@ -1471,31 +1898,148 @@ "issues": "https://github.com/laravel/pulse/issues", "source": "https://github.com/laravel/pulse" }, - "time": "2025-07-18T15:54:11+00:00" + "time": "2026-03-26T14:27:31+00:00" + }, + { + "name": "laravel/roster", + "version": "v0.5.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/roster.git", + "reference": "5089de7615f72f78e831590ff9d0435fed0102bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/roster/zipball/5089de7615f72f78e831590ff9d0435fed0102bb", + "reference": "5089de7615f72f78e831590ff9d0435fed0102bb", + "shasum": "" + }, + "require": { + "illuminate/console": "^11.0|^12.0|^13.0", + "illuminate/contracts": "^11.0|^12.0|^13.0", + "illuminate/routing": "^11.0|^12.0|^13.0", + "illuminate/support": "^11.0|^12.0|^13.0", + "php": "^8.2", + "symfony/yaml": "^7.2|^8.0" + }, + "require-dev": { + "laravel/pint": "^1.14", + "mockery/mockery": "^1.6", + "orchestra/testbench": "^9.0|^10.0|^11.0", + "pestphp/pest": "^3.0|^4.1", + "phpstan/phpstan": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Roster\\RosterServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Roster\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Detect packages & approaches in use within a Laravel project", + "homepage": "https://github.com/laravel/roster", + "keywords": [ + "dev", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/roster/issues", + "source": "https://github.com/laravel/roster" + }, + "time": "2026-03-05T07:58:43+00:00" + }, + { + "name": "laravel/sentinel", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sentinel.git", + "reference": "972d9885d9d14312a118e9565c4e6ecc5e751ea1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sentinel/zipball/972d9885d9d14312a118e9565c4e6ecc5e751ea1", + "reference": "972d9885d9d14312a118e9565c4e6ecc5e751ea1", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/container": "^8.37|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": "^8.0" + }, + "require-dev": { + "laravel/pint": "^1.27", + "orchestra/testbench": "^6.47.1|^7.56|^8.37|^9.16|^10.9|^11.0", + "phpstan/phpstan": "^2.1.33" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sentinel\\SentinelServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sentinel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Mior Muhammad Zaki", + "email": "mior@laravel.com" + } + ], + "support": { + "source": "https://github.com/laravel/sentinel/tree/v1.1.0" + }, + "time": "2026-03-24T14:03:38+00:00" }, { "name": "laravel/serializable-closure", - "version": "v2.0.6", + "version": "v2.0.13", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "038ce42edee619599a1debb7e81d7b3759492819" + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/038ce42edee619599a1debb7e81d7b3759492819", - "reference": "038ce42edee619599a1debb7e81d7b3759492819", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/b566ee0dd251f3c4078bed003a7ce015f5ea6dce", + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce", "shasum": "" }, "require": { "php": "^8.1" }, "require-dev": { - "illuminate/support": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0|^13.0", "nesbot/carbon": "^2.67|^3.0", - "pestphp/pest": "^2.36|^3.0", + "pestphp/pest": "^2.36|^3.0|^4.0", "phpstan/phpstan": "^2.0", - "symfony/var-dumper": "^6.2.0|^7.0.0" + "symfony/var-dumper": "^6.2.0|^7.0.0|^8.0.0" }, "type": "library", "extra": { @@ -1532,37 +2076,37 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2025-10-09T13:42:30+00:00" + "time": "2026-04-16T14:03:50+00:00" }, { "name": "laravel/tinker", - "version": "v2.10.1", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3" + "reference": "4faba77764bd33411735936acdf30446d058c78b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/22177cc71807d38f2810c6204d8f7183d88a57d3", - "reference": "22177cc71807d38f2810c6204d8f7183d88a57d3", + "url": "https://api.github.com/repos/laravel/tinker/zipball/4faba77764bd33411735936acdf30446d058c78b", + "reference": "4faba77764bd33411735936acdf30446d058c78b", "shasum": "" }, "require": { - "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", - "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", - "php": "^7.2.5|^8.0", - "psy/psysh": "^0.11.1|^0.12.0", - "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" + "illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": "^8.1", + "psy/psysh": "^0.12.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0" }, "require-dev": { "mockery/mockery": "~1.3.3|^1.4.2", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^8.5.8|^9.3.3|^10.0" + "phpunit/phpunit": "^10.5|^11.5" }, "suggest": { - "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." + "illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0|^13.0)." }, "type": "library", "extra": { @@ -1570,6 +2114,9 @@ "providers": [ "Laravel\\Tinker\\TinkerServiceProvider" ] + }, + "branch-alias": { + "dev-master": "3.x-dev" } }, "autoload": { @@ -1596,22 +2143,22 @@ ], "support": { "issues": "https://github.com/laravel/tinker/issues", - "source": "https://github.com/laravel/tinker/tree/v2.10.1" + "source": "https://github.com/laravel/tinker/tree/v3.0.2" }, - "time": "2025-01-27T14:24:01+00:00" + "time": "2026-03-17T14:54:13+00:00" }, { "name": "league/commonmark", - "version": "2.7.1", + "version": "2.8.2", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "10732241927d3971d28e7ea7b5712721fa2296ca" + "reference": "59fb075d2101740c337c7216e3f32b36c204218b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/10732241927d3971d28e7ea7b5712721fa2296ca", - "reference": "10732241927d3971d28e7ea7b5712721fa2296ca", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/59fb075d2101740c337c7216e3f32b36c204218b", + "reference": "59fb075d2101740c337c7216e3f32b36c204218b", "shasum": "" }, "require": { @@ -1636,9 +2183,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/process": "^5.4 | ^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 || ^8.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0 || ^8.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0 || ^8.0", "unleashedtech/php-coding-standard": "^3.1.1", "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" }, @@ -1648,7 +2195,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.8-dev" + "dev-main": "2.9-dev" } }, "autoload": { @@ -1705,7 +2252,7 @@ "type": "tidelift" } ], - "time": "2025-07-20T12:47:49+00:00" + "time": "2026-03-19T13:16:38+00:00" }, { "name": "league/config", @@ -1791,16 +2338,16 @@ }, { "name": "league/flysystem", - "version": "3.30.1", + "version": "3.34.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "c139fd65c1f796b926f4aec0df37f6caa959a8da" + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c139fd65c1f796b926f4aec0df37f6caa959a8da", - "reference": "c139fd65c1f796b926f4aec0df37f6caa959a8da", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", "shasum": "" }, "require": { @@ -1868,22 +2415,22 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.30.1" + "source": "https://github.com/thephpleague/flysystem/tree/3.34.0" }, - "time": "2025-10-20T15:35:26+00:00" + "time": "2026-05-14T10:28:08+00:00" }, { "name": "league/flysystem-local", - "version": "3.30.0", + "version": "3.31.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-local.git", - "reference": "6691915f77c7fb69adfb87dcd550052dc184ee10" + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/6691915f77c7fb69adfb87dcd550052dc184ee10", - "reference": "6691915f77c7fb69adfb87dcd550052dc184ee10", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079", "shasum": "" }, "require": { @@ -1917,9 +2464,9 @@ "local" ], "support": { - "source": "https://github.com/thephpleague/flysystem-local/tree/3.30.0" + "source": "https://github.com/thephpleague/flysystem-local/tree/3.31.0" }, - "time": "2025-05-21T10:34:19+00:00" + "time": "2026-01-23T15:30:45+00:00" }, { "name": "league/mime-type-detection", @@ -1979,33 +2526,38 @@ }, { "name": "league/uri", - "version": "7.5.1", + "version": "7.8.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri.git", - "reference": "81fb5145d2644324614cc532b28efd0215bda430" + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430", - "reference": "81fb5145d2644324614cc532b28efd0215bda430", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/08cf38e3924d4f56238125547b5720496fac8fd4", + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4", "shasum": "" }, "require": { - "league/uri-interfaces": "^7.5", - "php": "^8.1" + "league/uri-interfaces": "^7.8.1", + "php": "^8.1", + "psr/http-factory": "^1" }, "conflict": { "league/uri-schemes": "^1.0" }, "suggest": { "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", "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", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to further parse the URI host and resolve its Public Suffix and Top Level Domain", + "league/uri-components": "to provide additional tools to manipulate URI objects components", + "league/uri-polyfill": "to backport the PHP URI extension for older versions of PHP", "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" }, "type": "library", @@ -2033,6 +2585,7 @@ "description": "URI manipulation library", "homepage": "https://uri.thephpleague.com", "keywords": [ + "URN", "data-uri", "file-uri", "ftp", @@ -2045,9 +2598,11 @@ "psr-7", "query-string", "querystring", + "rfc2141", "rfc3986", "rfc3987", "rfc6570", + "rfc8141", "uri", "uri-template", "url", @@ -2057,7 +2612,7 @@ "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" + "source": "https://github.com/thephpleague/uri/tree/7.8.1" }, "funding": [ { @@ -2065,26 +2620,25 @@ "type": "github" } ], - "time": "2024-12-08T08:40:02+00:00" + "time": "2026-03-15T20:22:25+00:00" }, { "name": "league/uri-interfaces", - "version": "7.5.0", + "version": "7.8.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri-interfaces.git", - "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742" + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", - "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/85d5c77c5d6d3af6c54db4a78246364908f3c928", + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928", "shasum": "" }, "require": { "ext-filter": "*", "php": "^8.1", - "psr/http-factory": "^1", "psr/http-message": "^1.1 || ^2.0" }, "suggest": { @@ -2092,6 +2646,7 @@ "ext-gmp": "to improve IPV4 host parsing", "ext-intl": "to handle IDN host with the best performance", "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" }, "type": "library", @@ -2116,7 +2671,7 @@ "homepage": "https://nyamsprod.com" } ], - "description": "Common interfaces and classes for URI representation and interaction", + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", "homepage": "https://uri.thephpleague.com", "keywords": [ "data-uri", @@ -2141,7 +2696,7 @@ "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" + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.8.1" }, "funding": [ { @@ -2149,40 +2704,40 @@ "type": "github" } ], - "time": "2024-12-08T08:18:47+00:00" + "time": "2026-03-08T20:05:35+00:00" }, { "name": "livewire/livewire", - "version": "v3.6.4", + "version": "v4.3.0", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "ef04be759da41b14d2d129e670533180a44987dc" + "reference": "19ebb1ee4d057debceccf70ff01950e6a6114edc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/ef04be759da41b14d2d129e670533180a44987dc", - "reference": "ef04be759da41b14d2d129e670533180a44987dc", + "url": "https://api.github.com/repos/livewire/livewire/zipball/19ebb1ee4d057debceccf70ff01950e6a6114edc", + "reference": "19ebb1ee4d057debceccf70ff01950e6a6114edc", "shasum": "" }, "require": { - "illuminate/database": "^10.0|^11.0|^12.0", - "illuminate/routing": "^10.0|^11.0|^12.0", - "illuminate/support": "^10.0|^11.0|^12.0", - "illuminate/validation": "^10.0|^11.0|^12.0", + "illuminate/database": "^10.0|^11.0|^12.0|^13.0", + "illuminate/routing": "^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^10.0|^11.0|^12.0|^13.0", + "illuminate/validation": "^10.0|^11.0|^12.0|^13.0", "laravel/prompts": "^0.1.24|^0.2|^0.3", "league/mime-type-detection": "^1.9", "php": "^8.1", - "symfony/console": "^6.0|^7.0", - "symfony/http-kernel": "^6.2|^7.0" + "symfony/console": "^6.0|^7.0|^8.0", + "symfony/http-kernel": "^6.2|^7.0|^8.0" }, "require-dev": { "calebporzio/sushi": "^2.1", - "laravel/framework": "^10.15.0|^11.0|^12.0", + "laravel/framework": "^10.15.0|^11.0|^12.0|^13.0", "mockery/mockery": "^1.3.1", - "orchestra/testbench": "^8.21.0|^9.0|^10.0", - "orchestra/testbench-dusk": "^8.24|^9.1|^10.0", - "phpunit/phpunit": "^10.4|^11.5", + "orchestra/testbench": "^8.21.0|^9.0|^10.0|^11.0", + "orchestra/testbench-dusk": "^8.24|^9.1|^10.0|^11.0", + "phpunit/phpunit": "^10.4|^11.5|^12.5", "psy/psysh": "^0.11.22|^0.12" }, "type": "library", @@ -2217,7 +2772,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v3.6.4" + "source": "https://github.com/livewire/livewire/tree/v4.3.0" }, "funding": [ { @@ -2225,20 +2780,87 @@ "type": "github" } ], - "time": "2025-07-17T05:12:15+00:00" + "time": "2026-05-01T00:46:07+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.10.1", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "fd5018f6815fff903946d0564977b44ce8010e29" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fd5018f6815fff903946d0564977b44ce8010e29", + "reference": "fd5018f6815fff903946d0564977b44ce8010e29", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9 || ^10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.10.1" + }, + "time": "2026-06-23T18:43:15+00:00" }, { "name": "monolog/monolog", - "version": "3.9.0", + "version": "3.10.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "10d85740180ecba7896c87e06a166e0c95a0e3b6" + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/10d85740180ecba7896c87e06a166e0c95a0e3b6", - "reference": "10d85740180ecba7896c87e06a166e0c95a0e3b6", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0", "shasum": "" }, "require": { @@ -2256,7 +2878,7 @@ "graylog2/gelf-php": "^1.4.2 || ^2.0", "guzzlehttp/guzzle": "^7.4.5", "guzzlehttp/psr7": "^2.2", - "mongodb/mongodb": "^1.8", + "mongodb/mongodb": "^1.8 || ^2.0", "php-amqplib/php-amqplib": "~2.4 || ^3", "php-console/php-console": "^3.1.8", "phpstan/phpstan": "^2", @@ -2316,7 +2938,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.9.0" + "source": "https://github.com/Seldaek/monolog/tree/3.10.0" }, "funding": [ { @@ -2328,20 +2950,20 @@ "type": "tidelift" } ], - "time": "2025-03-24T10:02:05+00:00" + "time": "2026-01-02T08:56:05+00:00" }, { "name": "nesbot/carbon", - "version": "3.10.3", + "version": "3.11.4", "source": { "type": "git", "url": "https://github.com/CarbonPHP/carbon.git", - "reference": "8e3643dcd149ae0fe1d2ff4f2c8e4bbfad7c165f" + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/8e3643dcd149ae0fe1d2ff4f2c8e4bbfad7c165f", - "reference": "8e3643dcd149ae0fe1d2ff4f2c8e4bbfad7c165f", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/e890471a3494740f7d9326d72ce6a8c559ffee60", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60", "shasum": "" }, "require": { @@ -2349,9 +2971,9 @@ "ext-json": "*", "php": "^8.1", "psr/clock": "^1.0", - "symfony/clock": "^6.3.12 || ^7.0", + "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", "symfony/polyfill-mbstring": "^1.0", - "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0" + "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" }, "provide": { "psr/clock-implementation": "1.0" @@ -2365,7 +2987,7 @@ "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan": "^2.1.22", "phpunit/phpunit": "^10.5.53", - "squizlabs/php_codesniffer": "^3.13.4" + "squizlabs/php_codesniffer": "^3.13.4 || ^4.0.0" }, "bin": [ "bin/carbon" @@ -2408,14 +3030,14 @@ } ], "description": "An API extension for DateTime that supports 281 different languages.", - "homepage": "https://carbon.nesbot.com", + "homepage": "https://carbonphp.github.io/carbon/", "keywords": [ "date", "datetime", "time" ], "support": { - "docs": "https://carbon.nesbot.com/docs", + "docs": "https://carbonphp.github.io/carbon/guide/getting-started/introduction.html", "issues": "https://github.com/CarbonPHP/carbon/issues", "source": "https://github.com/CarbonPHP/carbon" }, @@ -2433,29 +3055,31 @@ "type": "tidelift" } ], - "time": "2025-09-06T13:39:36+00:00" + "time": "2026-04-07T09:57:54+00:00" }, { "name": "nette/schema", - "version": "v1.3.2", + "version": "v1.3.5", "source": { "type": "git", "url": "https://github.com/nette/schema.git", - "reference": "da801d52f0354f70a638673c4a0f04e16529431d" + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/schema/zipball/da801d52f0354f70a638673c4a0f04e16529431d", - "reference": "da801d52f0354f70a638673c4a0f04e16529431d", + "url": "https://api.github.com/repos/nette/schema/zipball/f0ab1a3cda782dbc5da270d28545236aa80c4002", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002", "shasum": "" }, "require": { "nette/utils": "^4.0", - "php": "8.1 - 8.4" + "php": "8.1 - 8.5" }, "require-dev": { - "nette/tester": "^2.5.2", - "phpstan/phpstan-nette": "^1.0", + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.6", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1.39@stable", "tracy/tracy": "^2.8" }, "type": "library", @@ -2465,6 +3089,9 @@ } }, "autoload": { + "psr-4": { + "Nette\\": "src" + }, "classmap": [ "src/" ] @@ -2493,26 +3120,26 @@ ], "support": { "issues": "https://github.com/nette/schema/issues", - "source": "https://github.com/nette/schema/tree/v1.3.2" + "source": "https://github.com/nette/schema/tree/v1.3.5" }, - "time": "2024-10-06T23:10:23+00:00" + "time": "2026-02-23T03:47:12+00:00" }, { "name": "nette/utils", - "version": "v4.0.8", + "version": "v4.1.4", "source": { "type": "git", "url": "https://github.com/nette/utils.git", - "reference": "c930ca4e3cf4f17dcfb03037703679d2396d2ede" + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/utils/zipball/c930ca4e3cf4f17dcfb03037703679d2396d2ede", - "reference": "c930ca4e3cf4f17dcfb03037703679d2396d2ede", + "url": "https://api.github.com/repos/nette/utils/zipball/7da6c396d7ebe142bc857c20479d5e70a5e1aac7", + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7", "shasum": "" }, "require": { - "php": "8.0 - 8.5" + "php": "8.2 - 8.5" }, "conflict": { "nette/finder": "<3", @@ -2520,8 +3147,10 @@ }, "require-dev": { "jetbrains/phpstorm-attributes": "^1.2", + "nette/phpstan-rules": "^1.0", "nette/tester": "^2.5", - "phpstan/phpstan-nette": "^2.0@stable", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1@stable", "tracy/tracy": "^2.9" }, "suggest": { @@ -2535,7 +3164,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "4.1-dev" } }, "autoload": { @@ -2582,22 +3211,22 @@ ], "support": { "issues": "https://github.com/nette/utils/issues", - "source": "https://github.com/nette/utils/tree/v4.0.8" + "source": "https://github.com/nette/utils/tree/v4.1.4" }, - "time": "2025-08-06T21:43:34+00:00" + "time": "2026-05-11T20:49:54+00:00" }, { "name": "nikic/php-parser", - "version": "v5.6.2", + "version": "v5.7.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb" + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", "shasum": "" }, "require": { @@ -2640,37 +3269,37 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" }, - "time": "2025-10-21T19:32:17+00:00" + "time": "2025-12-06T11:56:16+00:00" }, { "name": "nunomaduro/termwind", - "version": "v2.3.2", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/termwind.git", - "reference": "eb61920a53057a7debd718a5b89c2178032b52c0" + "reference": "712a31b768f5daea284c2169a7d227031001b9a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/eb61920a53057a7debd718a5b89c2178032b52c0", - "reference": "eb61920a53057a7debd718a5b89c2178032b52c0", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/712a31b768f5daea284c2169a7d227031001b9a8", + "reference": "712a31b768f5daea284c2169a7d227031001b9a8", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^8.2", - "symfony/console": "^7.3.4" + "symfony/console": "^7.4.4 || ^8.0.4" }, "require-dev": { - "illuminate/console": "^11.46.1", - "laravel/pint": "^1.25.1", + "illuminate/console": "^11.47.0", + "laravel/pint": "^1.27.1", "mockery/mockery": "^1.6.12", - "pestphp/pest": "^2.36.0 || ^3.8.4", + "pestphp/pest": "^2.36.0 || ^3.8.4 || ^4.3.2", "phpstan/phpstan": "^1.12.32", "phpstan/phpstan-strict-rules": "^1.6.2", - "symfony/var-dumper": "^7.3.4", + "symfony/var-dumper": "^7.3.5 || ^8.0.4", "thecodingmachine/phpstan-strict-rules": "^1.0.0" }, "type": "library", @@ -2702,7 +3331,7 @@ "email": "enunomaduro@gmail.com" } ], - "description": "Its like Tailwind CSS, but for the console.", + "description": "It's like Tailwind CSS, but for the console.", "keywords": [ "cli", "console", @@ -2713,7 +3342,7 @@ ], "support": { "issues": "https://github.com/nunomaduro/termwind/issues", - "source": "https://github.com/nunomaduro/termwind/tree/v2.3.2" + "source": "https://github.com/nunomaduro/termwind/tree/v2.4.0" }, "funding": [ { @@ -2729,20 +3358,20 @@ "type": "github" } ], - "time": "2025-10-18T11:10:27+00:00" + "time": "2026-02-16T23:10:27+00:00" }, { "name": "phpoption/phpoption", - "version": "1.9.4", + "version": "1.9.5", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d" + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d", - "reference": "638a154f8d4ee6a5cfa96d6a34dfbe0cffa9566d", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", "shasum": "" }, "require": { @@ -2792,7 +3421,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.4" + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" }, "funding": [ { @@ -2804,7 +3433,7 @@ "type": "tidelift" } ], - "time": "2025-08-21T11:53:16+00:00" + "time": "2025-12-27T19:41:33+00:00" }, { "name": "predis/predis", @@ -3283,16 +3912,16 @@ }, { "name": "psy/psysh", - "version": "v0.12.13", + "version": "v0.12.23", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "d86c2f750e72017a5cdb1b9f1cef468a5cbacd1e" + "reference": "4dcc0f08047d52bbde475eda481146fd8e27e1a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d86c2f750e72017a5cdb1b9f1cef468a5cbacd1e", - "reference": "d86c2f750e72017a5cdb1b9f1cef468a5cbacd1e", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/4dcc0f08047d52bbde475eda481146fd8e27e1a4", + "reference": "4dcc0f08047d52bbde475eda481146fd8e27e1a4", "shasum": "" }, "require": { @@ -3300,8 +3929,8 @@ "ext-tokenizer": "*", "nikic/php-parser": "^5.0 || ^4.0", "php": "^8.0 || ^7.4", - "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", - "symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + "symfony/console": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" }, "conflict": { "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" @@ -3313,7 +3942,6 @@ "suggest": { "composer/class-map-generator": "Improved tab completion performance with better class discovery.", "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", - "ext-pdo-sqlite": "The doc command requires SQLite to work.", "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." }, "bin": [ @@ -3357,9 +3985,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.12.13" + "source": "https://github.com/bobthecow/psysh/tree/v0.12.23" }, - "time": "2025-10-20T22:48:29+00:00" + "time": "2026-05-23T13:41:31+00:00" }, { "name": "ralouphie/getallheaders", @@ -3483,20 +4111,20 @@ }, { "name": "ramsey/uuid", - "version": "4.9.1", + "version": "4.9.2", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "81f941f6f729b1e3ceea61d9d014f8b6c6800440" + "reference": "8429c78ca35a09f27565311b98101e2826affde0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/81f941f6f729b1e3ceea61d9d014f8b6c6800440", - "reference": "81f941f6f729b1e3ceea61d9d014f8b6c6800440", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", + "reference": "8429c78ca35a09f27565311b98101e2826affde0", "shasum": "" }, "require": { - "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", "php": "^8.0", "ramsey/collection": "^1.2 || ^2.0" }, @@ -3555,36 +4183,117 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.9.1" + "source": "https://github.com/ramsey/uuid/tree/4.9.2" + }, + "time": "2025-12-14T04:43:48+00:00" + }, + { + "name": "sabberworm/php-css-parser", + "version": "v9.4.0", + "source": { + "type": "git", + "url": "https://github.com/MyIntervals/PHP-CSS-Parser.git", + "reference": "fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f", + "reference": "fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "thecodingmachine/safe": "^1.3 || ^2.5 || ^3.4" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "1.4.0", + "phpstan/extension-installer": "1.4.3", + "phpstan/phpstan": "1.12.33 || 2.2.2", + "phpstan/phpstan-phpunit": "1.4.2 || 2.0.16", + "phpstan/phpstan-strict-rules": "1.6.2 || 2.0.11", + "phpunit/phpunit": "8.5.52", + "rawr/phpunit-data-provider": "3.3.1", + "rector/rector": "1.2.10 || 2.4.6", + "rector/type-perfect": "1.0.0 || 2.1.3", + "squizlabs/php_codesniffer": "4.0.1", + "thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.3" + }, + "suggest": { + "ext-mbstring": "for parsing UTF-8 CSS" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "9.5.x-dev" + } + }, + "autoload": { + "files": [ + "src/Rule/Rule.php", + "src/RuleSet/RuleContainer.php" + ], + "psr-4": { + "Sabberworm\\CSS\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Raphael Schweikert" + }, + { + "name": "Oliver Klee", + "email": "github@oliverklee.de" + }, + { + "name": "Jake Hotson", + "email": "jake.github@qzdesign.co.uk" + } + ], + "description": "Parser for CSS Files written in PHP", + "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", + "keywords": [ + "css", + "parser", + "stylesheet" + ], + "support": { + "issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues", + "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v9.4.0" }, - "time": "2025-09-04T20:59:21+00:00" + "time": "2026-06-18T15:10:53+00:00" }, { "name": "spatie/laravel-permission", - "version": "6.21.0", + "version": "6.25.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-permission.git", - "reference": "6a118e8855dfffcd90403aab77bbf35a03db51b3" + "reference": "d7d4cb0d58616722f1afc90e0484e4825155b9b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/6a118e8855dfffcd90403aab77bbf35a03db51b3", - "reference": "6a118e8855dfffcd90403aab77bbf35a03db51b3", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/d7d4cb0d58616722f1afc90e0484e4825155b9b3", + "reference": "d7d4cb0d58616722f1afc90e0484e4825155b9b3", "shasum": "" }, "require": { - "illuminate/auth": "^8.12|^9.0|^10.0|^11.0|^12.0", - "illuminate/container": "^8.12|^9.0|^10.0|^11.0|^12.0", - "illuminate/contracts": "^8.12|^9.0|^10.0|^11.0|^12.0", - "illuminate/database": "^8.12|^9.0|^10.0|^11.0|^12.0", + "illuminate/auth": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/container": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/database": "^8.12|^9.0|^10.0|^11.0|^12.0|^13.0", "php": "^8.0" }, "require-dev": { - "laravel/passport": "^11.0|^12.0", + "laravel/passport": "^11.0|^12.0|^13.0", "laravel/pint": "^1.0", - "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^9.4|^10.1|^11.5" + "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0|^11.0", + "pestphp/pest": "^2.0|^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0" }, "type": "library", "extra": { @@ -3632,7 +4341,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-permission/issues", - "source": "https://github.com/spatie/laravel-permission/tree/6.21.0" + "source": "https://github.com/spatie/laravel-permission/tree/6.25.0" }, "funding": [ { @@ -3640,26 +4349,25 @@ "type": "github" } ], - "time": "2025-07-23T16:08:05+00:00" + "time": "2026-03-17T22:46:46+00:00" }, { "name": "symfony/clock", - "version": "v7.3.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/clock.git", - "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24" + "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/clock/zipball/b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", - "reference": "b81435fbd6648ea425d1ee96a2d8e68f4ceacd24", + "url": "https://api.github.com/repos/symfony/clock/zipball/701ef4de9705d6c32292ebee5e8044094a09fbf6", + "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6", "shasum": "" }, "require": { - "php": ">=8.2", - "psr/clock": "^1.0", - "symfony/polyfill-php83": "^1.28" + "php": ">=8.4.1", + "psr/clock": "^1.0" }, "provide": { "psr/clock-implementation": "1.0" @@ -3698,7 +4406,7 @@ "time" ], "support": { - "source": "https://github.com/symfony/clock/tree/v7.3.0" + "source": "https://github.com/symfony/clock/tree/v8.1.0" }, "funding": [ { @@ -3709,56 +4417,62 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/console", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" + "reference": "f5a856c6ecb56b3c21ed94a5b7bf940d857d110a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", - "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "url": "https://api.github.com/repos/symfony/console/zipball/f5a856c6ecb56b3c21ed94a5b7bf940d857d110a", + "reference": "f5a856c6ecb56b3c21ed94a5b7bf940d857d110a", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php85": "^1.32", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^7.2" + "symfony/string": "^7.4.6|^8.0.6" }, "conflict": { - "symfony/dependency-injection": "<6.4", - "symfony/dotenv": "<6.4", - "symfony/event-dispatcher": "<6.4", - "symfony/lock": "<6.4", - "symfony/process": "<6.4" + "symfony/dependency-injection": "<8.1", + "symfony/event-dispatcher": "<8.1" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/lock": "^6.4|^7.0", - "symfony/messenger": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/stopwatch": "^6.4|^7.0", - "symfony/var-dumper": "^6.4|^7.0" + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^8.1", + "symfony/event-dispatcher": "^8.1", + "symfony/filesystem": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/lock": "^7.4|^8.0", + "symfony/messenger": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0", + "symfony/uid": "^7.4|^8.0", + "symfony/validator": "^7.4|^8.0", + "symfony/var-dumper": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -3792,7 +4506,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.3.4" + "source": "https://github.com/symfony/console/tree/v8.1.0" }, "funding": [ { @@ -3812,24 +4526,24 @@ "type": "tidelift" } ], - "time": "2025-09-22T15:31:00+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/css-selector", - "version": "v7.3.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2" + "reference": "dc0e2be45c9b5588c82414f02ac574b4b986abcd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/601a5ce9aaad7bf10797e3663faefce9e26c24e2", - "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/dc0e2be45c9b5588c82414f02ac574b4b986abcd", + "reference": "dc0e2be45c9b5588c82414f02ac574b4b986abcd", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4.1" }, "type": "library", "autoload": { @@ -3861,7 +4575,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v7.3.0" + "source": "https://github.com/symfony/css-selector/tree/v8.1.0" }, "funding": [ { @@ -3872,25 +4586,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", "shasum": "" }, "require": { @@ -3903,7 +4621,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -3928,7 +4646,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0" }, "funding": [ { @@ -3939,41 +4657,45 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-04-13T15:52:40+00:00" }, { "name": "symfony/error-handler", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "99f81bc944ab8e5dae4f21b4ca9972698bbad0e4" + "reference": "d8aeb1abd3fef84795567850d3a567bdb5945ee5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/99f81bc944ab8e5dae4f21b4ca9972698bbad0e4", - "reference": "99f81bc944ab8e5dae4f21b4ca9972698bbad0e4", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/d8aeb1abd3fef84795567850d3a567bdb5945ee5", + "reference": "d8aeb1abd3fef84795567850d3a567bdb5945ee5", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "psr/log": "^1|^2|^3", - "symfony/var-dumper": "^6.4|^7.0" + "symfony/polyfill-php85": "^1.32", + "symfony/var-dumper": "^7.4|^8.0" }, "conflict": { - "symfony/deprecation-contracts": "<2.5", - "symfony/http-kernel": "<6.4" + "symfony/deprecation-contracts": "<2.5" }, "require-dev": { - "symfony/console": "^6.4|^7.0", + "symfony/console": "^7.4|^8.0", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/serializer": "^6.4|^7.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0", "symfony/webpack-encore-bundle": "^1.0|^2.0" }, "bin": [ @@ -4005,7 +4727,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.3.4" + "source": "https://github.com/symfony/error-handler/tree/v8.1.0" }, "funding": [ { @@ -4025,28 +4747,29 @@ "type": "tidelift" } ], - "time": "2025-09-11T10:12:26+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.3.3", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191" + "reference": "f249ae3f680958b6f1f9dd76e5747cf0695b4102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191", - "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f249ae3f680958b6f1f9dd76e5747cf0695b4102", + "reference": "f249ae3f680958b6f1f9dd76e5747cf0695b4102", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/event-dispatcher-contracts": "^2.5|^3" }, "conflict": { - "symfony/dependency-injection": "<6.4", + "symfony/security-http": "<7.4", "symfony/service-contracts": "<2.5" }, "provide": { @@ -4055,13 +4778,14 @@ }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/error-handler": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", "symfony/service-contracts": "^2.5|^3", - "symfony/stopwatch": "^6.4|^7.0" + "symfony/stopwatch": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4089,7 +4813,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.3.3" + "source": "https://github.com/symfony/event-dispatcher/tree/v8.1.0" }, "funding": [ { @@ -4109,20 +4833,20 @@ "type": "tidelift" } ], - "time": "2025-08-13T11:49:31+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586" + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/ccba7060602b7fed0b03c85bf025257f76d9ef32", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32", "shasum": "" }, "require": { @@ -4136,7 +4860,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -4169,7 +4893,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.0" }, "funding": [ { @@ -4181,31 +4905,35 @@ "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-01-05T13:30:16+00:00" }, { "name": "symfony/finder", - "version": "v7.3.2", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" + "reference": "58d2e767a66052c1487356f953445634a8194c64" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", + "url": "https://api.github.com/repos/symfony/finder/zipball/58d2e767a66052c1487356f953445634a8194c64", + "reference": "58d2e767a66052c1487356f953445634a8194c64", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4.1" }, "require-dev": { - "symfony/filesystem": "^6.4|^7.0" + "symfony/filesystem": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4233,7 +4961,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.3.2" + "source": "https://github.com/symfony/finder/tree/v8.1.0" }, "funding": [ { @@ -4253,42 +4981,40 @@ "type": "tidelift" } ], - "time": "2025-07-15T13:41:35+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "c061c7c18918b1b64268771aad04b40be41dd2e6" + "reference": "af11474600f06718086c2cda4fa6fa8d0a672e7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/c061c7c18918b1b64268771aad04b40be41dd2e6", - "reference": "c061c7c18918b1b64268771aad04b40be41dd2e6", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/af11474600f06718086c2cda4fa6fa8d0a672e7e", + "reference": "af11474600f06718086c2cda4fa6fa8d0a672e7e", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/polyfill-mbstring": "~1.1", - "symfony/polyfill-php83": "^1.27" + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "^1.1" }, "conflict": { - "doctrine/dbal": "<3.6", - "symfony/cache": "<6.4.12|>=7.0,<7.1.5" + "doctrine/dbal": "<4.3" }, "require-dev": { - "doctrine/dbal": "^3.6|^4", + "doctrine/dbal": "^4.3", "predis/predis": "^1.1|^2.0", - "symfony/cache": "^6.4.12|^7.1.5", - "symfony/clock": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/mime": "^6.4|^7.0", - "symfony/rate-limiter": "^6.4|^7.0" + "symfony/cache": "^7.4|^8.0", + "symfony/clock": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/rate-limiter": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4316,7 +5042,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.3.4" + "source": "https://github.com/symfony/http-foundation/tree/v8.1.0" }, "funding": [ { @@ -4336,77 +5062,68 @@ "type": "tidelift" } ], - "time": "2025-09-16T08:38:17+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "b796dffea7821f035047235e076b60ca2446e3cf" + "reference": "cefeb37c82eed3e0c42fa25ba64cd3a908d90f39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/b796dffea7821f035047235e076b60ca2446e3cf", - "reference": "b796dffea7821f035047235e076b60ca2446e3cf", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/cefeb37c82eed3e0c42fa25ba64cd3a908d90f39", + "reference": "cefeb37c82eed3e0c42fa25ba64cd3a908d90f39", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "psr/log": "^1|^2|^3", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/error-handler": "^6.4|^7.0", - "symfony/event-dispatcher": "^7.3", - "symfony/http-foundation": "^7.3", + "symfony/error-handler": "^7.4|^8.0", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "symfony/browser-kit": "<6.4", - "symfony/cache": "<6.4", - "symfony/config": "<6.4", - "symfony/console": "<6.4", - "symfony/dependency-injection": "<6.4", - "symfony/doctrine-bridge": "<6.4", - "symfony/form": "<6.4", - "symfony/http-client": "<6.4", + "symfony/dependency-injection": "<8.1", + "symfony/flex": "<2.10", "symfony/http-client-contracts": "<2.5", - "symfony/mailer": "<6.4", - "symfony/messenger": "<6.4", - "symfony/translation": "<6.4", "symfony/translation-contracts": "<2.5", - "symfony/twig-bridge": "<6.4", - "symfony/validator": "<6.4", - "symfony/var-dumper": "<6.4", - "twig/twig": "<3.12" + "symfony/var-dumper": "<8.1", + "symfony/web-profiler-bundle": "<8.1", + "twig/twig": "<3.21" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/cache": "^1.0|^2.0|^3.0", - "symfony/browser-kit": "^6.4|^7.0", - "symfony/clock": "^6.4|^7.0", - "symfony/config": "^6.4|^7.0", - "symfony/console": "^6.4|^7.0", - "symfony/css-selector": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/dom-crawler": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/finder": "^6.4|^7.0", + "symfony/browser-kit": "^7.4|^8.0", + "symfony/clock": "^7.4|^8.0", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/css-selector": "^7.4|^8.0", + "symfony/dependency-injection": "^8.1", + "symfony/dom-crawler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", "symfony/http-client-contracts": "^2.5|^3", - "symfony/process": "^6.4|^7.0", - "symfony/property-access": "^7.1", - "symfony/routing": "^6.4|^7.0", - "symfony/serializer": "^7.1", - "symfony/stopwatch": "^6.4|^7.0", - "symfony/translation": "^6.4|^7.0", + "symfony/process": "^7.4|^8.0", + "symfony/property-access": "^7.4|^8.0", + "symfony/rate-limiter": "^7.4|^8.0", + "symfony/routing": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0", + "symfony/translation": "^7.4|^8.0", "symfony/translation-contracts": "^2.5|^3", - "symfony/uid": "^6.4|^7.0", - "symfony/validator": "^6.4|^7.0", - "symfony/var-dumper": "^6.4|^7.0", - "symfony/var-exporter": "^6.4|^7.0", - "twig/twig": "^3.12" + "symfony/uid": "^7.4|^8.0", + "symfony/validator": "^7.4|^8.0", + "symfony/var-dumper": "^8.1", + "symfony/var-exporter": "^7.4|^8.0", + "twig/twig": "^3.21" }, "type": "library", "autoload": { @@ -4434,7 +5151,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.3.4" + "source": "https://github.com/symfony/http-kernel/tree/v8.1.0" }, "funding": [ { @@ -4454,43 +5171,39 @@ "type": "tidelift" } ], - "time": "2025-09-27T12:32:17+00:00" + "time": "2026-05-29T08:46:08+00:00" }, { "name": "symfony/mailer", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "ab97ef2f7acf0216955f5845484235113047a31d" + "reference": "9418d772df3a03a142e3bc06f602adb2b8724877" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/ab97ef2f7acf0216955f5845484235113047a31d", - "reference": "ab97ef2f7acf0216955f5845484235113047a31d", + "url": "https://api.github.com/repos/symfony/mailer/zipball/9418d772df3a03a142e3bc06f602adb2b8724877", + "reference": "9418d772df3a03a142e3bc06f602adb2b8724877", "shasum": "" }, "require": { "egulias/email-validator": "^2.1.10|^3|^4", - "php": ">=8.2", + "php": ">=8.4.1", "psr/event-dispatcher": "^1", "psr/log": "^1|^2|^3", - "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/mime": "^7.2", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", "symfony/service-contracts": "^2.5|^3" }, "conflict": { - "symfony/http-client-contracts": "<2.5", - "symfony/http-kernel": "<6.4", - "symfony/messenger": "<6.4", - "symfony/mime": "<6.4", - "symfony/twig-bridge": "<6.4" + "symfony/http-client-contracts": "<2.5" }, "require-dev": { - "symfony/console": "^6.4|^7.0", - "symfony/http-client": "^6.4|^7.0", - "symfony/messenger": "^6.4|^7.0", - "symfony/twig-bridge": "^6.4|^7.0" + "symfony/console": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/messenger": "^7.4|^8.0", + "symfony/twig-bridge": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4518,7 +5231,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.3.4" + "source": "https://github.com/symfony/mailer/tree/v8.1.0" }, "funding": [ { @@ -4538,43 +5251,41 @@ "type": "tidelift" } ], - "time": "2025-09-17T05:51:54+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/mime", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "b1b828f69cbaf887fa835a091869e55df91d0e35" + "reference": "b164ae7e3f7915aacfe9ee155f2f358502440664" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/b1b828f69cbaf887fa835a091869e55df91d0e35", - "reference": "b1b828f69cbaf887fa835a091869e55df91d0e35", + "url": "https://api.github.com/repos/symfony/mime/zipball/b164ae7e3f7915aacfe9ee155f2f358502440664", + "reference": "b164ae7e3f7915aacfe9ee155f2f358502440664", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/polyfill-intl-idn": "^1.10", "symfony/polyfill-mbstring": "^1.0" }, "conflict": { "egulias/email-validator": "~3.0.0", - "phpdocumentor/reflection-docblock": "<3.2.2", - "phpdocumentor/type-resolver": "<1.4.0", - "symfony/mailer": "<6.4", - "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + "phpdocumentor/reflection-docblock": "<5.2|>=7", + "phpdocumentor/type-resolver": "<1.5.1" }, "require-dev": { "egulias/email-validator": "^2.1.10|^3.1|^4", "league/html-to-markdown": "^5.0", - "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/property-access": "^6.4|^7.0", - "symfony/property-info": "^6.4|^7.0", - "symfony/serializer": "^6.4.3|^7.0.3" + "phpdocumentor/reflection-docblock": "^5.2|^6.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/property-access": "^7.4|^8.0", + "symfony/property-info": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -4606,7 +5317,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.3.4" + "source": "https://github.com/symfony/mime/tree/v8.1.0" }, "funding": [ { @@ -4626,20 +5337,20 @@ "type": "tidelift" } ], - "time": "2025-09-16T08:38:17+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.33.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { @@ -4689,7 +5400,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -4709,20 +5420,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.33.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" + "reference": "e9247d281d694a5120554d9afaf54e070e88a603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", - "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", + "reference": "e9247d281d694a5120554d9afaf54e070e88a603", "shasum": "" }, "require": { @@ -4771,7 +5482,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" }, "funding": [ { @@ -4791,20 +5502,20 @@ "type": "tidelift" } ], - "time": "2025-06-27T09:58:17+00:00" + "time": "2026-05-26T05:58:03+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.33.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + "reference": "dc21118016c039a66235cf93d96b435ffb282412" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", - "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/dc21118016c039a66235cf93d96b435ffb282412", + "reference": "dc21118016c039a66235cf93d96b435ffb282412", "shasum": "" }, "require": { @@ -4858,7 +5569,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.38.1" }, "funding": [ { @@ -4878,20 +5589,20 @@ "type": "tidelift" } ], - "time": "2024-09-10T14:38:51+00:00" + "time": "2026-05-25T15:22:23+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.33.0", + "version": "v1.38.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "3833d7255cc303546435cb650316bff708a1c75c" + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", - "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/2d446c214bdbe5b71bde5011b060a05fece3ae6b", + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b", "shasum": "" }, "require": { @@ -4943,7 +5654,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.38.0" }, "funding": [ { @@ -4963,20 +5674,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-25T13:48:31+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.33.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", - "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/14c5439eec4ccff081ac14eca2dc57feb2a66d92", + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92", "shasum": "" }, "require": { @@ -5028,7 +5739,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.1" }, "funding": [ { @@ -5048,20 +5759,20 @@ "type": "tidelift" } ], - "time": "2024-12-23T08:48:59+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.33.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", "shasum": "" }, "require": { @@ -5112,7 +5823,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" }, "funding": [ { @@ -5132,20 +5843,20 @@ "type": "tidelift" } ], - "time": "2025-01-02T08:10:11+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { - "name": "symfony/polyfill-php83", - "version": "v1.33.0", + "name": "symfony/polyfill-php84", + "version": "v1.38.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5" + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5", - "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", "shasum": "" }, "require": { @@ -5163,7 +5874,7 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php83\\": "" + "Symfony\\Polyfill\\Php84\\": "" }, "classmap": [ "Resources/stubs" @@ -5183,7 +5894,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", @@ -5192,7 +5903,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.38.1" }, "funding": [ { @@ -5212,20 +5923,20 @@ "type": "tidelift" } ], - "time": "2025-07-08T02:45:35+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { - "name": "symfony/polyfill-php84", - "version": "v1.33.0", + "name": "symfony/polyfill-php85", + "version": "v1.38.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", "shasum": "" }, "require": { @@ -5243,7 +5954,7 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php84\\": "" + "Symfony\\Polyfill\\Php85\\": "" }, "classmap": [ "Resources/stubs" @@ -5263,7 +5974,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", @@ -5272,7 +5983,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.38.1" }, "funding": [ { @@ -5292,20 +6003,20 @@ "type": "tidelift" } ], - "time": "2025-06-24T13:30:11+00:00" + "time": "2026-05-26T02:25:22+00:00" }, { - "name": "symfony/polyfill-php85", - "version": "v1.33.0", + "name": "symfony/polyfill-php86", + "version": "v1.38.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91" + "url": "https://github.com/symfony/polyfill-php86.git", + "reference": "fcec68d64f46dc84e1f6ffcf2c6dda40ff3143ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", - "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", + "url": "https://api.github.com/repos/symfony/polyfill-php86/zipball/fcec68d64f46dc84e1f6ffcf2c6dda40ff3143ad", + "reference": "fcec68d64f46dc84e1f6ffcf2c6dda40ff3143ad", "shasum": "" }, "require": { @@ -5323,7 +6034,7 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php85\\": "" + "Symfony\\Polyfill\\Php86\\": "" }, "classmap": [ "Resources/stubs" @@ -5343,7 +6054,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "description": "Symfony polyfill backporting some PHP 8.6+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", @@ -5352,7 +6063,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php86/tree/v1.38.0" }, "funding": [ { @@ -5372,20 +6083,20 @@ "type": "tidelift" } ], - "time": "2025-06-23T16:12:55+00:00" + "time": "2026-05-25T11:52:35+00:00" }, { "name": "symfony/polyfill-uuid", - "version": "v1.33.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-uuid.git", - "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2" + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", - "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94", "shasum": "" }, "require": { @@ -5435,7 +6146,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/polyfill-uuid/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.37.0" }, "funding": [ { @@ -5455,24 +6166,24 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/process", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b" + "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b", - "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b", + "url": "https://api.github.com/repos/symfony/process/zipball/c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", + "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4.1" }, "type": "library", "autoload": { @@ -5500,7 +6211,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.3.4" + "source": "https://github.com/symfony/process/tree/v8.1.0" }, "funding": [ { @@ -5520,38 +6231,33 @@ "type": "tidelift" } ], - "time": "2025-09-11T10:12:26+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/routing", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "8dc648e159e9bac02b703b9fbd937f19ba13d07c" + "reference": "fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/8dc648e159e9bac02b703b9fbd937f19ba13d07c", - "reference": "8dc648e159e9bac02b703b9fbd937f19ba13d07c", + "url": "https://api.github.com/repos/symfony/routing/zipball/fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3", + "reference": "fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/deprecation-contracts": "^2.5|^3" }, - "conflict": { - "symfony/config": "<6.4", - "symfony/dependency-injection": "<6.4", - "symfony/yaml": "<6.4" - }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", - "symfony/yaml": "^6.4|^7.0" + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/yaml": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -5585,7 +6291,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.3.4" + "source": "https://github.com/symfony/routing/tree/v8.1.0" }, "funding": [ { @@ -5605,20 +6311,20 @@ "type": "tidelift" } ], - "time": "2025-09-11T10:12:26+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", "shasum": "" }, "require": { @@ -5636,7 +6342,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -5672,7 +6378,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.7.0" }, "funding": [ { @@ -5683,43 +6389,47 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-04-25T09:37:31+00:00" + "time": "2026-03-28T09:44:51+00:00" }, { "name": "symfony/string", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "f96476035142921000338bad71e5247fbc138872" + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", - "reference": "f96476035142921000338bad71e5247fbc138872", + "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" + "php": ">=8.4.1", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-intl-grapheme": "^1.33", + "symfony/polyfill-intl-normalizer": "^1.0", + "symfony/polyfill-mbstring": "^1.0" }, "conflict": { "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/emoji": "^7.1", - "symfony/http-client": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", + "symfony/emoji": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^6.4|^7.0" + "symfony/var-exporter": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -5758,7 +6468,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.3.4" + "source": "https://github.com/symfony/string/tree/v8.1.0" }, "funding": [ { @@ -5778,38 +6488,31 @@ "type": "tidelift" } ], - "time": "2025-09-11T14:36:48+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/translation", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "ec25870502d0c7072d086e8ffba1420c85965174" + "reference": "b2bd012ca28c4acae830ee1206a5b6e35dd99693" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/ec25870502d0c7072d086e8ffba1420c85965174", - "reference": "ec25870502d0c7072d086e8ffba1420c85965174", + "url": "https://api.github.com/repos/symfony/translation/zipball/b2bd012ca28c4acae830ee1206a5b6e35dd99693", + "reference": "b2bd012ca28c4acae830ee1206a5b6e35dd99693", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.5|^3.0" + "php": ">=8.4.1", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation-contracts": "^3.6.1" }, "conflict": { "nikic/php-parser": "<5.0", - "symfony/config": "<6.4", - "symfony/console": "<6.4", - "symfony/dependency-injection": "<6.4", "symfony/http-client-contracts": "<2.5", - "symfony/http-kernel": "<6.4", - "symfony/service-contracts": "<2.5", - "symfony/twig-bundle": "<6.4", - "symfony/yaml": "<6.4" + "symfony/service-contracts": "<2.5" }, "provide": { "symfony/translation-implementation": "2.3|3.0" @@ -5817,17 +6520,17 @@ "require-dev": { "nikic/php-parser": "^5.0", "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/console": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/finder": "^6.4|^7.0", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", "symfony/http-client-contracts": "^2.5|^3.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", "symfony/polyfill-intl-icu": "^1.21", - "symfony/routing": "^6.4|^7.0", + "symfony/routing": "^7.4|^8.0", "symfony/service-contracts": "^2.5|^3", - "symfony/yaml": "^6.4|^7.0" + "symfony/yaml": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -5858,7 +6561,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.3.4" + "source": "https://github.com/symfony/translation/tree/v8.1.0" }, "funding": [ { @@ -5878,20 +6581,20 @@ "type": "tidelift" } ], - "time": "2025-09-07T11:39:36+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "df210c7a2573f1913b2d17cc95f90f53a73d8f7d" + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/df210c7a2573f1913b2d17cc95f90f53a73d8f7d", - "reference": "df210c7a2573f1913b2d17cc95f90f53a73d8f7d", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/0ab302977a952b42fd51475c4ebac81f8da0a95d", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d", "shasum": "" }, "require": { @@ -5904,7 +6607,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -5940,7 +6643,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/translation-contracts/tree/v3.7.0" }, "funding": [ { @@ -5951,33 +6654,37 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-27T08:32:26+00:00" + "time": "2026-01-05T13:30:16+00:00" }, { "name": "symfony/uid", - "version": "v7.3.1", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/uid.git", - "reference": "a69f69f3159b852651a6bf45a9fdd149520525bb" + "reference": "7393f157a55f7e70a4de0334435c55a5a8fe749a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/uid/zipball/a69f69f3159b852651a6bf45a9fdd149520525bb", - "reference": "a69f69f3159b852651a6bf45a9fdd149520525bb", + "url": "https://api.github.com/repos/symfony/uid/zipball/7393f157a55f7e70a4de0334435c55a5a8fe749a", + "reference": "7393f157a55f7e70a4de0334435c55a5a8fe749a", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/polyfill-uuid": "^1.15" }, "require-dev": { - "symfony/console": "^6.4|^7.0" + "symfony/console": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -6014,7 +6721,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/uid/tree/v7.3.1" + "source": "https://github.com/symfony/uid/tree/v8.1.0" }, "funding": [ { @@ -6025,40 +6732,44 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-06-27T19:55:54+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/var-dumper", - "version": "v7.3.4", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "b8abe7daf2730d07dfd4b2ee1cecbf0dd2fbdabb" + "reference": "c2c4df1d21477cc21c9f6dc1b14d07c3abc4963e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/b8abe7daf2730d07dfd4b2ee1cecbf0dd2fbdabb", - "reference": "b8abe7daf2730d07dfd4b2ee1cecbf0dd2fbdabb", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c2c4df1d21477cc21c9f6dc1b14d07c3abc4963e", + "reference": "c2c4df1d21477cc21c9f6dc1b14d07c3abc4963e", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/polyfill-mbstring": "~1.0" + "php": ">=8.4.1", + "symfony/polyfill-mbstring": "^1.0" }, "conflict": { - "symfony/console": "<6.4" + "symfony/console": "<7.4", + "symfony/error-handler": "<7.4" }, "require-dev": { - "symfony/console": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/uid": "^6.4|^7.0", + "symfony/console": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/uid": "^7.4|^8.0", "twig/twig": "^3.12" }, "bin": [ @@ -6097,7 +6808,83 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.3.4" + "source": "https://github.com/symfony/var-dumper/tree/v8.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/yaml", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "efb42bd2c6f4f3ccfd4683583449938b5fc146b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/efb42bd2c6f4f3ccfd4683583449938b5fc146b0", + "reference": "efb42bd2c6f4f3ccfd4683583449938b5fc146b0", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<7.4" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0", + "yaml/yaml-test-suite": "*" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v8.1.0" }, "funding": [ { @@ -6117,27 +6904,170 @@ "type": "tidelift" } ], - "time": "2025-09-11T10:12:26+00:00" + "time": "2026-05-29T05:06:50+00:00" + }, + { + "name": "thecodingmachine/safe", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/thecodingmachine/safe.git", + "reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/705683a25bacf0d4860c7dea4d7947bfd09eea19", + "reference": "705683a25bacf0d4860c7dea4d7947bfd09eea19", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^10", + "squizlabs/php_codesniffer": "^3.2" + }, + "type": "library", + "autoload": { + "files": [ + "lib/special_cases.php", + "generated/apache.php", + "generated/apcu.php", + "generated/array.php", + "generated/bzip2.php", + "generated/calendar.php", + "generated/classobj.php", + "generated/com.php", + "generated/cubrid.php", + "generated/curl.php", + "generated/datetime.php", + "generated/dir.php", + "generated/eio.php", + "generated/errorfunc.php", + "generated/exec.php", + "generated/fileinfo.php", + "generated/filesystem.php", + "generated/filter.php", + "generated/fpm.php", + "generated/ftp.php", + "generated/funchand.php", + "generated/gettext.php", + "generated/gmp.php", + "generated/gnupg.php", + "generated/hash.php", + "generated/ibase.php", + "generated/ibmDb2.php", + "generated/iconv.php", + "generated/image.php", + "generated/imap.php", + "generated/info.php", + "generated/inotify.php", + "generated/json.php", + "generated/ldap.php", + "generated/libxml.php", + "generated/lzf.php", + "generated/mailparse.php", + "generated/mbstring.php", + "generated/misc.php", + "generated/mysql.php", + "generated/mysqli.php", + "generated/network.php", + "generated/oci8.php", + "generated/opcache.php", + "generated/openssl.php", + "generated/outcontrol.php", + "generated/pcntl.php", + "generated/pcre.php", + "generated/pgsql.php", + "generated/posix.php", + "generated/ps.php", + "generated/pspell.php", + "generated/readline.php", + "generated/rnp.php", + "generated/rpminfo.php", + "generated/rrd.php", + "generated/sem.php", + "generated/session.php", + "generated/shmop.php", + "generated/sockets.php", + "generated/sodium.php", + "generated/solr.php", + "generated/spl.php", + "generated/sqlsrv.php", + "generated/ssdeep.php", + "generated/ssh2.php", + "generated/stream.php", + "generated/strings.php", + "generated/swoole.php", + "generated/uodbc.php", + "generated/uopz.php", + "generated/url.php", + "generated/var.php", + "generated/xdiff.php", + "generated/xml.php", + "generated/xmlrpc.php", + "generated/yaml.php", + "generated/yaz.php", + "generated/zip.php", + "generated/zlib.php" + ], + "classmap": [ + "lib/DateTime.php", + "lib/DateTimeImmutable.php", + "lib/Exceptions/", + "generated/Exceptions/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHP core functions that throw exceptions instead of returning FALSE on error", + "support": { + "issues": "https://github.com/thecodingmachine/safe/issues", + "source": "https://github.com/thecodingmachine/safe/tree/v3.4.0" + }, + "funding": [ + { + "url": "https://github.com/OskarStark", + "type": "github" + }, + { + "url": "https://github.com/shish", + "type": "github" + }, + { + "url": "https://github.com/silasjoisten", + "type": "github" + }, + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2026-02-04T18:08:13+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", - "version": "v2.3.0", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", - "reference": "0d72ac1c00084279c1816675284073c5a337c20d" + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0d72ac1c00084279c1816675284073c5a337c20d", - "reference": "0d72ac1c00084279c1816675284073c5a337c20d", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/f0292ccf0ec75843d65027214426b6b163b48b41", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "php": "^7.4 || ^8.0", - "symfony/css-selector": "^5.4 || ^6.0 || ^7.0" + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0" }, "require-dev": { "phpstan/phpstan": "^2.0", @@ -6170,32 +7100,32 @@ "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", "support": { "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", - "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.3.0" + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" }, - "time": "2024-12-21T16:25:41+00:00" + "time": "2025-12-02T11:56:42+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v5.6.2", + "version": "v5.6.3", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "24ac4c74f91ee2c193fa1aaa5c249cb0822809af" + "reference": "955e7815d677a3eaa7075231212f2110983adecc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/24ac4c74f91ee2c193fa1aaa5c249cb0822809af", - "reference": "24ac4c74f91ee2c193fa1aaa5c249cb0822809af", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/955e7815d677a3eaa7075231212f2110983adecc", + "reference": "955e7815d677a3eaa7075231212f2110983adecc", "shasum": "" }, "require": { "ext-pcre": "*", - "graham-campbell/result-type": "^1.1.3", + "graham-campbell/result-type": "^1.1.4", "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9.3", - "symfony/polyfill-ctype": "^1.24", - "symfony/polyfill-mbstring": "^1.24", - "symfony/polyfill-php80": "^1.24" + "phpoption/phpoption": "^1.9.5", + "symfony/polyfill-ctype": "^1.26", + "symfony/polyfill-mbstring": "^1.26", + "symfony/polyfill-php80": "^1.26" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", @@ -6244,7 +7174,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.2" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.3" }, "funding": [ { @@ -6256,27 +7186,27 @@ "type": "tidelift" } ], - "time": "2025-04-30T23:37:27+00:00" + "time": "2025-12-27T19:49:13+00:00" }, { "name": "voku/portable-ascii", - "version": "2.0.3", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/voku/portable-ascii.git", - "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" + "reference": "8e1051fe39379367aecf014f41744ce7539a856f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", - "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/8e1051fe39379367aecf014f41744ce7539a856f", + "reference": "8e1051fe39379367aecf014f41744ce7539a856f", "shasum": "" }, "require": { - "php": ">=7.0.0" + "php": ">=7.1.0" }, "require-dev": { - "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + "phpunit/phpunit": "~8.5 || ~9.6 || ~10.5 || ~11.5" }, "suggest": { "ext-intl": "Use Intl for transliterator_transliterate() support" @@ -6306,7 +7236,7 @@ ], "support": { "issues": "https://github.com/voku/portable-ascii/issues", - "source": "https://github.com/voku/portable-ascii/tree/2.0.3" + "source": "https://github.com/voku/portable-ascii/tree/2.1.1" }, "funding": [ { @@ -6330,78 +7260,20 @@ "type": "tidelift" } ], - "time": "2024-11-21T01:49:47+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.12.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "541057574806f942c94662b817a50f63f7345360" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/541057574806f942c94662b817a50f63f7345360", - "reference": "541057574806f942c94662b817a50f63f7345360", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "ext-date": "*", - "ext-filter": "*", - "php": "^7.2 || ^8.0" - }, - "suggest": { - "ext-intl": "", - "ext-simplexml": "", - "ext-spl": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.12.0" - }, - "time": "2025-10-20T12:43:39+00:00" + "time": "2026-04-26T05:33:54+00:00" }, { "name": "wowcrypto/wowcrypto", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", - "url": "https://github.com/WoW-CMS/WowCrypto.git", - "reference": "4e6a03c396357b7f411508f3fcd53f6f30416bb5" + "url": "https://github.com/WoW-CMS/WowCrypto", + "reference": "05489e3d9dc70e9979b86b6cdf70d3d5b7ffc1a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WoW-CMS/WowCrypto/zipball/4e6a03c396357b7f411508f3fcd53f6f30416bb5", - "reference": "4e6a03c396357b7f411508f3fcd53f6f30416bb5", + "url": "https://api.github.com/repos/WoW-CMS/WowCrypto/zipball/05489e3d9dc70e9979b86b6cdf70d3d5b7ffc1a0", + "reference": "05489e3d9dc70e9979b86b6cdf70d3d5b7ffc1a0", "shasum": "" }, "require": { @@ -6427,11 +7299,7 @@ "MIT" ], "description": "Biblioteca de encriptación para World of Warcraft con soporte para múltiples métodos de hash", - "support": { - "source": "https://github.com/WoW-CMS/WowCrypto/tree/1.2.0", - "issues": "https://github.com/WoW-CMS/WowCrypto/issues" - }, - "time": "2025-06-02T19:04:14+00:00" + "time": "2026-05-05T21:45:37+00:00" } ], "packages-dev": [ @@ -6503,77 +7371,6 @@ }, "time": "2023-06-12T08:44:38+00:00" }, - { - "name": "filp/whoops", - "version": "2.18.4", - "source": { - "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", - "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" - }, - "require-dev": { - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", - "symfony/var-dumper": "^4.0 || ^5.0" - }, - "suggest": { - "symfony/var-dumper": "Pretty print complex values better with var-dumper available", - "whoops/soap": "Formats errors as SOAP responses" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, - "autoload": { - "psr-4": { - "Whoops\\": "src/Whoops/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", - "role": "Developer" - } - ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", - "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" - ], - "support": { - "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.18.4" - }, - "funding": [ - { - "url": "https://github.com/denis-sokolov", - "type": "github" - } - ], - "time": "2025-08-08T12:00:00+00:00" - }, { "name": "hamcrest/hamcrest-php", "version": "v2.1.1", @@ -6627,37 +7424,38 @@ }, { "name": "laravel/pail", - "version": "v1.2.3", + "version": "v1.2.7", "source": { "type": "git", "url": "https://github.com/laravel/pail.git", - "reference": "8cc3d575c1f0e57eeb923f366a37528c50d2385a" + "reference": "2f7d27dada8effc48b8c424445a69cca7007daaa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pail/zipball/8cc3d575c1f0e57eeb923f366a37528c50d2385a", - "reference": "8cc3d575c1f0e57eeb923f366a37528c50d2385a", + "url": "https://api.github.com/repos/laravel/pail/zipball/2f7d27dada8effc48b8c424445a69cca7007daaa", + "reference": "2f7d27dada8effc48b8c424445a69cca7007daaa", "shasum": "" }, "require": { "ext-mbstring": "*", - "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", + "illuminate/console": "^10.24|^11.0|^12.0|^13.0", + "illuminate/contracts": "^10.24|^11.0|^12.0|^13.0", + "illuminate/log": "^10.24|^11.0|^12.0|^13.0", + "illuminate/process": "^10.24|^11.0|^12.0|^13.0", + "illuminate/support": "^10.24|^11.0|^12.0|^13.0", "nunomaduro/termwind": "^1.15|^2.0", "php": "^8.2", - "symfony/console": "^6.0|^7.0" + "symfony/console": "^6.0|^7.0|^8.0" }, "require-dev": { - "laravel/framework": "^10.24|^11.0|^12.0", + "laravel/framework": "^10.24|^11.0|^12.0|^13.0", "laravel/pint": "^1.13", - "orchestra/testbench-core": "^8.13|^9.0|^10.0", - "pestphp/pest": "^2.20|^3.0", - "pestphp/pest-plugin-type-coverage": "^2.3|^3.0", + "orchestra/testbench-core": "^8.13|^9.17|^10.8|^11.0", + "pestphp/pest": "^2.20|^3.0|^4.0", + "pestphp/pest-plugin-type-coverage": "^2.3|^3.0|^4.0", "phpstan/phpstan": "^1.12.27", - "symfony/var-dumper": "^6.3|^7.0" + "symfony/var-dumper": "^6.3|^7.0|^8.0", + "symfony/yaml": "^6.3|^7.0|^8.0" }, "type": "library", "extra": { @@ -6702,7 +7500,7 @@ "issues": "https://github.com/laravel/pail/issues", "source": "https://github.com/laravel/pail" }, - "time": "2025-06-05T13:55:57+00:00" + "time": "2026-05-20T22:24:57+00:00" }, { "name": "laravel/pint", @@ -6772,29 +7570,29 @@ }, { "name": "laravel/sail", - "version": "v1.46.0", + "version": "v1.61.0", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "eb90c4f113c4a9637b8fdd16e24cfc64f2b0ae6e" + "reference": "68ef35015630fe510432e63e11e21749006df688" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/eb90c4f113c4a9637b8fdd16e24cfc64f2b0ae6e", - "reference": "eb90c4f113c4a9637b8fdd16e24cfc64f2b0ae6e", + "url": "https://api.github.com/repos/laravel/sail/zipball/68ef35015630fe510432e63e11e21749006df688", + "reference": "68ef35015630fe510432e63e11e21749006df688", "shasum": "" }, "require": { - "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0", - "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0", - "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0|^13.0", "php": "^8.0", - "symfony/console": "^6.0|^7.0", - "symfony/yaml": "^6.0|^7.0" + "symfony/console": "^6.0|^7.0|^8.0", + "symfony/yaml": "^6.0|^7.0|^8.0" }, "require-dev": { - "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", - "phpstan/phpstan": "^1.10" + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0", + "phpstan/phpstan": "^2.0" }, "bin": [ "bin/sail" @@ -6831,7 +7629,7 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2025-09-23T13:44:39+00:00" + "time": "2026-05-23T23:33:57+00:00" }, { "name": "mockery/mockery", @@ -6958,120 +7756,23 @@ ], "description": "Create deep copies (clones) of your objects", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" - }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2025-08-01T08:46:24+00:00" - }, - { - "name": "nunomaduro/collision", - "version": "v8.6.0", - "source": { - "type": "git", - "url": "https://github.com/nunomaduro/collision.git", - "reference": "a94c0fb8f33da6a113cdc0eac936f7c42134de9d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/a94c0fb8f33da6a113cdc0eac936f7c42134de9d", - "reference": "a94c0fb8f33da6a113cdc0eac936f7c42134de9d", - "shasum": "" - }, - "require": { - "filp/whoops": "^2.16.0", - "nunomaduro/termwind": "^2.3.0", - "php": "^8.2.0", - "symfony/console": "^7.2.1" - }, - "conflict": { - "laravel/framework": "<11.39.1 || >=13.0.0", - "phpunit/phpunit": "<11.5.3 || >=12.0.0" - }, - "require-dev": { - "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.9.2", - "pestphp/pest": "^2.36.0 || ^3.7.2", - "sebastian/environment": "^6.1.0 || ^7.2.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" - ] - }, - "branch-alias": { - "dev-8.x": "8.x-dev" - } - }, - "autoload": { - "files": [ - "./src/Adapters/Phpunit/Autoload.php" - ], - "psr-4": { - "NunoMaduro\\Collision\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" - } - ], - "description": "Cli error handling for console/command-line PHP applications.", - "keywords": [ - "artisan", - "cli", - "command-line", - "console", - "error", - "handling", - "laravel", - "laravel-zero", - "php", - "symfony" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], "support": { - "issues": "https://github.com/nunomaduro/collision/issues", - "source": "https://github.com/nunomaduro/collision" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { - "url": "https://www.paypal.com/paypalme/enunomaduro", - "type": "custom" - }, - { - "url": "https://github.com/nunomaduro", - "type": "github" - }, - { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" } ], - "time": "2025-01-23T12:48:18+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { "name": "phar-io/manifest", @@ -7193,35 +7894,33 @@ }, { "name": "phpunit/php-code-coverage", - "version": "11.0.11", + "version": "12.5.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4" + "reference": "876099a072646c7745f673d7aeab5382c4439691" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4", - "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/876099a072646c7745f673d7aeab5382c4439691", + "reference": "876099a072646c7745f673d7aeab5382c4439691", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^5.4.0", - "php": ">=8.2", - "phpunit/php-file-iterator": "^5.1.0", - "phpunit/php-text-template": "^4.0.1", - "sebastian/code-unit-reverse-lookup": "^4.0.1", - "sebastian/complexity": "^4.0.1", - "sebastian/environment": "^7.2.0", - "sebastian/lines-of-code": "^3.0.1", - "sebastian/version": "^5.0.2", - "theseer/tokenizer": "^1.2.3" + "nikic/php-parser": "^5.7.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" }, "require-dev": { - "phpunit/phpunit": "^11.5.2" + "phpunit/phpunit": "^12.5.1" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -7230,7 +7929,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "11.0.x-dev" + "dev-main": "12.5.x-dev" } }, "autoload": { @@ -7259,7 +7958,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.11" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.6" }, "funding": [ { @@ -7279,32 +7978,32 @@ "type": "tidelift" } ], - "time": "2025-08-27T14:37:49+00:00" + "time": "2026-04-15T08:23:17+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -7332,36 +8031,48 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2026-02-02T14:04:18+00:00" }, { "name": "phpunit/php-invoker", - "version": "5.0.1", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "suggest": { "ext-pcntl": "*" @@ -7369,7 +8080,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -7396,7 +8107,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" }, "funding": [ { @@ -7404,32 +8115,32 @@ "type": "github" } ], - "time": "2024-07-03T05:07:44+00:00" + "time": "2025-02-07T04:58:58+00:00" }, { "name": "phpunit/php-text-template", - "version": "4.0.1", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/e1367a453f0eda562eedb4f659e13aa900d66c53", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7456,7 +8167,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.0" }, "funding": [ { @@ -7464,32 +8175,32 @@ "type": "github" } ], - "time": "2024-07-03T05:08:43+00:00" + "time": "2025-02-07T04:59:16+00:00" }, { "name": "phpunit/php-timer", - "version": "7.0.1", + "version": "8.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -7516,7 +8227,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", "security": "https://github.com/sebastianbergmann/php-timer/security/policy", - "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" }, "funding": [ { @@ -7524,20 +8235,20 @@ "type": "github" } ], - "time": "2024-07-03T05:09:35+00:00" + "time": "2025-02-07T04:59:38+00:00" }, { "name": "phpunit/phpunit", - "version": "11.5.3", + "version": "12.5.28", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "30e319e578a7b5da3543073e30002bf82042f701" + "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/30e319e578a7b5da3543073e30002bf82042f701", - "reference": "30e319e578a7b5da3543073e30002bf82042f701", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5895d05f5bf421ed230fbd76e1277e4b8955def4", + "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4", "shasum": "" }, "require": { @@ -7547,37 +8258,34 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.1", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=8.2", - "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.2", - "sebastian/comparator": "^6.3.0", - "sebastian/diff": "^6.0.2", - "sebastian/environment": "^7.2.0", - "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", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.6", + "phpunit/php-file-iterator": "^6.0.1", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.0", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.1", + "sebastian/comparator": "^7.1.8", + "sebastian/diff": "^7.0.0", + "sebastian/environment": "^8.1.2", + "sebastian/exporter": "^7.0.3", + "sebastian/global-state": "^8.0.2", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.4", + "sebastian/version": "^6.0.0", "staabm/side-effects-detector": "^1.0.5" }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" - }, "bin": [ "phpunit" ], "type": "library", "extra": { "branch-alias": { - "dev-main": "11.5-dev" + "dev-main": "12.5-dev" } }, "autoload": { @@ -7609,48 +8317,40 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.28" }, "funding": [ { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" + "url": "https://phpunit.de/sponsoring.html", + "type": "other" } ], - "time": "2025-01-13T09:36:00+00:00" + "time": "2026-05-27T14:01:10+00:00" }, { "name": "sebastian/cli-parser", - "version": "3.0.2", + "version": "4.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.2-dev" } }, "autoload": { @@ -7674,152 +8374,51 @@ "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" - } - ], - "time": "2024-07-03T04:41:36+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64", - "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.3" - }, - "funding": [ + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-03-19T07:56:08+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" - }, - "funding": [ + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" } ], - "time": "2024-07-03T04:45:54+00:00" + "time": "2026-05-17T05:29:34+00:00" }, { "name": "sebastian/comparator", - "version": "6.3.2", + "version": "7.1.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8" + "reference": "7c65c1e79836812819705b473a90c12399542485" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", + "reference": "7c65c1e79836812819705b473a90c12399542485", "shasum": "" }, "require": { "ext-dom": "*", "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/diff": "^6.0", - "sebastian/exporter": "^6.0" + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0.3" }, "require-dev": { - "phpunit/phpunit": "^11.4" + "phpunit/phpunit": "^12.5.25" }, "suggest": { "ext-bcmath": "For comparing BcMath\\Number objects" @@ -7827,7 +8426,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.3-dev" + "dev-main": "7.1-dev" } }, "autoload": { @@ -7867,7 +8466,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.3.2" + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" }, "funding": [ { @@ -7887,33 +8486,33 @@ "type": "tidelift" } ], - "time": "2025-08-10T08:07:46+00:00" + "time": "2026-05-21T04:45:25+00:00" }, { "name": "sebastian/complexity", - "version": "4.0.1", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", "shasum": "" }, "require": { "nikic/php-parser": "^5.0", - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7937,7 +8536,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" }, "funding": [ { @@ -7945,33 +8544,33 @@ "type": "github" } ], - "time": "2024-07-03T04:49:50+00:00" + "time": "2025-02-07T04:55:25+00:00" }, { "name": "sebastian/diff", - "version": "6.0.2", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -8004,7 +8603,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" }, "funding": [ { @@ -8012,27 +8611,27 @@ "type": "github" } ], - "time": "2024-07-03T04:53:05+00:00" + "time": "2025-02-07T04:55:46+00:00" }, { "name": "sebastian/environment", - "version": "7.2.1", + "version": "8.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4" + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4", - "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^12.5.26" }, "suggest": { "ext-posix": "*" @@ -8040,7 +8639,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "7.2-dev" + "dev-main": "8.1-dev" } }, "autoload": { @@ -8068,7 +8667,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/7.2.1" + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" }, "funding": [ { @@ -8088,34 +8687,34 @@ "type": "tidelift" } ], - "time": "2025-05-21T11:55:47+00:00" + "time": "2026-05-25T13:40:20+00:00" }, { "name": "sebastian/exporter", - "version": "6.3.2", + "version": "7.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "70a298763b40b213ec087c51c739efcaa90bcd74" + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74", - "reference": "70a298763b40b213ec087c51c739efcaa90bcd74", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/recursion-context": "^6.0" + "php": ">=8.3", + "sebastian/recursion-context": "^7.0.1" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.3-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -8158,7 +8757,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.3.2" + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" }, "funding": [ { @@ -8178,35 +8777,35 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:12:51+00:00" + "time": "2026-05-20T04:37:17+00:00" }, { "name": "sebastian/global-state", - "version": "7.0.2", + "version": "8.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7" + "reference": "ef1377171613d09edd25b7816f05be8313f9115d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d", "shasum": "" }, "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -8232,41 +8831,53 @@ "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" } ], - "time": "2024-07-03T04:57:36+00:00" + "time": "2025-08-29T11:29:25+00:00" }, { "name": "sebastian/lines-of-code", - "version": "3.0.1", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", "shasum": "" }, "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.2" + "nikic/php-parser": "^5.7.0", + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -8290,42 +8901,54 @@ "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", + "type": "tidelift" } ], - "time": "2024-07-03T04:58:38+00:00" + "time": "2026-05-19T16:22:07+00:00" }, { "name": "sebastian/object-enumerator", - "version": "6.0.1", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa" + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", "shasum": "" }, "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -8348,7 +8971,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" }, "funding": [ { @@ -8356,32 +8979,32 @@ "type": "github" } ], - "time": "2024-07-03T05:00:13+00:00" + "time": "2025-02-07T04:57:48+00:00" }, { "name": "sebastian/object-reflector", - "version": "4.0.1", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -8404,7 +9027,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" }, "funding": [ { @@ -8412,32 +9035,32 @@ "type": "github" } ], - "time": "2024-07-03T05:01:32+00:00" + "time": "2025-02-07T04:58:17+00:00" }, { "name": "sebastian/recursion-context", - "version": "6.0.3", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc" + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc", - "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -8468,7 +9091,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.3" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" }, "funding": [ { @@ -8488,32 +9111,32 @@ "type": "tidelift" } ], - "time": "2025-08-13T04:42:22+00:00" + "time": "2025-08-13T04:44:59+00:00" }, { "name": "sebastian/type", - "version": "5.1.3", + "version": "6.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449" + "reference": "82ff822c2edc46724be9f7411d3163021f602773" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449", - "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", + "reference": "82ff822c2edc46724be9f7411d3163021f602773", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -8537,7 +9160,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/type/issues", "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" }, "funding": [ { @@ -8557,29 +9180,29 @@ "type": "tidelift" } ], - "time": "2025-08-09T06:55:48+00:00" + "time": "2026-05-20T06:45:45+00:00" }, { "name": "sebastian/version", - "version": "5.0.2", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -8603,7 +9226,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/version/issues", "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/6.0.0" }, "funding": [ { @@ -8611,7 +9234,7 @@ "type": "github" } ], - "time": "2024-10-09T05:16:32+00:00" + "time": "2025-02-07T05:00:38+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -8749,101 +9372,25 @@ ], "time": "2024-10-20T05:08:20+00:00" }, - { - "name": "symfony/yaml", - "version": "v7.3.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "d4f4a66866fe2451f61296924767280ab5732d9d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/d4f4a66866fe2451f61296924767280ab5732d9d", - "reference": "d4f4a66866fe2451f61296924767280ab5732d9d", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "symfony/console": "<6.4" - }, - "require-dev": { - "symfony/console": "^6.4|^7.0" - }, - "bin": [ - "Resources/bin/yaml-lint" - ], - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Loads and dumps YAML files", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/yaml/tree/v7.3.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-08-27T11:34:33+00:00" - }, { "name": "theseer/tokenizer", - "version": "1.2.3", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", "shasum": "" }, "require": { "ext-dom": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" + "php": "^8.1" }, "type": "library", "autoload": { @@ -8865,7 +9412,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" }, "funding": [ { @@ -8873,7 +9420,7 @@ "type": "github" } ], - "time": "2024-03-03T12:36:25+00:00" + "time": "2025-12-08T11:19:18+00:00" } ], "aliases": [], @@ -8882,7 +9429,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^8.2" + "php": "^8.4" }, "platform-dev": {}, "plugin-api-version": "2.6.0" diff --git a/config/app.php b/config/app.php index 324b513..c86812a 100755 --- a/config/app.php +++ b/config/app.php @@ -123,4 +123,15 @@ 'store' => env('APP_MAINTENANCE_STORE', 'database'), ], + /* + |-------------------------------------------------------------------------- + | Version CMS + |-------------------------------------------------------------------------- + | + | The version of the CMS. The codename is the release nickname + | (see ROADMAP.md) and is shown alongside the version in the admin panel. + | + */ + 'version' => env('APP_VERSION', '0.1.6-alpha.5'), + 'codename' => env('APP_CODENAME', 'Anvil'), ]; diff --git a/config/database.php b/config/database.php index ca960a8..944683f 100755 --- a/config/database.php +++ b/config/database.php @@ -56,10 +56,7 @@ 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, - 'engine' => null, - 'options' => extension_loaded('pdo_mysql') ? array_filter([ - PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), - ]) : [], + 'engine' => null ], 'mysql_characters' => [ @@ -76,10 +73,7 @@ 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, - 'engine' => null, - 'options' => extension_loaded('pdo_mysql') ? array_filter([ - PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), - ]) : [], + 'engine' => null ], 'mysql_world' => [ @@ -96,10 +90,7 @@ 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, - 'engine' => null, - 'options' => extension_loaded('pdo_mysql') ? array_filter([ - PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), - ]) : [], + 'engine' => null ], 'mariadb' => [ @@ -116,10 +107,7 @@ 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, - 'engine' => null, - 'options' => extension_loaded('pdo_mysql') ? array_filter([ - PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), - ]) : [], + 'engine' => null ], 'pgsql' => [ diff --git a/config/donate.php b/config/donate.php new file mode 100644 index 0000000..5991fae --- /dev/null +++ b/config/donate.php @@ -0,0 +1,57 @@ + ['braintree', 'paypal'], + */ + 'enabled_gateways' => [ + 'braintree', + ], + + /** + * Conversion rate between currency and donation points. + * + * @var int + * + * Development note: Update this value as needed. + * + * @example 'dp_rate' => 100, + */ + 'dp_rate' => 100, + + /** + * Gateways configuration. + * + * @var array + * + * Development note: Add more gateways as needed. + * + * @example 'gateways' => ['braintree' => [...]], + */ + 'gateways' => [ + 'braintree' => [ + 'environment' => env('BRAINTREE_ENVIRONMENT'), + 'merchant_id' => env('BRAINTREE_MERCHANT_ID'), + 'public_key' => env('BRAINTREE_PUBLIC_KEY'), + 'private_key' => env('BRAINTREE_PRIVATE_KEY'), + ], + ], + + /** + * Donation plans configuration. + * + * @var array|null + * + * Development note: Plans are loaded from database at runtime. + * This config is not meant to be cached; query database directly in services. + */ + 'plans' => null, +]; \ No newline at end of file diff --git a/config/nexus.php b/config/nexus.php new file mode 100644 index 0000000..24bc665 --- /dev/null +++ b/config/nexus.php @@ -0,0 +1,14 @@ + env('REDIS_ENABLED', false), +]; diff --git a/config/services.php b/config/services.php index 27a3617..87741d0 100755 --- a/config/services.php +++ b/config/services.php @@ -35,4 +35,9 @@ ], ], + 'nexus_api' => [ + 'url' => env('NEXUS_API_URL', 'https://api.wow-cms.com/api/github'), + 'key' => env('NEXUS_API_KEY'), + 'header' => env('NEXUS_API_KEY_HEADER', 'X-API-Key'), + ], ]; diff --git a/config/update.php b/config/update.php new file mode 100644 index 0000000..7512f75 --- /dev/null +++ b/config/update.php @@ -0,0 +1,86 @@ + env('UPDATE_ENABLED', true), + + /* + |-------------------------------------------------------------------------- + | Source Repository + |-------------------------------------------------------------------------- + | + | The GitHub owner and repository name to check for updates. + | Change these if you are running a fork or a private mirror. + | + */ + 'repository' => [ + 'owner' => env('UPDATE_REPO_OWNER', 'wow-cms'), + 'name' => env('UPDATE_REPO_NAME', 'nexuscms'), + ], + + /* + |-------------------------------------------------------------------------- + | GitHub Token + |-------------------------------------------------------------------------- + | + | Optional GitHub personal access token. Required for private repositories + | or to avoid GitHub API rate limits (60 requests/hour anonymous). + | + */ + 'github_token' => env('GITHUB_TOKEN'), + + /* + |-------------------------------------------------------------------------- + | Release Channel + |-------------------------------------------------------------------------- + | + | Controls which releases are considered when checking for updates: + | "stable" — only non-prerelease tagged releases (recommended) + | "beta" — includes pre-releases flagged as beta + | "any" — includes all published releases (including alpha/RC) + | + */ + 'channel' => env('UPDATE_CHANNEL', 'any'), + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode + |-------------------------------------------------------------------------- + | + | If true, the updater will call `artisan down` before applying the update + | and `artisan up` afterwards, regardless of success or failure. + | + */ + 'maintenance_mode' => env('UPDATE_MAINTENANCE_MODE', true), + + /* + |-------------------------------------------------------------------------- + | Paths Excluded from ZIP Updates + |-------------------------------------------------------------------------- + | + | When applying a ZIP-based update, these paths (relative to base_path) + | will be skipped to avoid overwriting local configuration and data. + | + */ + 'skip_paths' => [ + '.env', + '.env.production', + 'vendor', + 'node_modules', + 'storage', + 'public/uploads', + 'public/storage', + ], + +]; diff --git a/database/migrations/2026_01_07_000001_add_dp_vp_to_users_table.php b/database/migrations/2026_01_07_000001_add_dp_vp_to_users_table.php new file mode 100644 index 0000000..8361c94 --- /dev/null +++ b/database/migrations/2026_01_07_000001_add_dp_vp_to_users_table.php @@ -0,0 +1,24 @@ +unsignedInteger('dp')->default(0)->after('password'); + $table->unsignedInteger('vp')->default(0)->after('dp'); + }); + } + + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['dp', 'vp']); + }); + } +}; + diff --git a/database/migrations/2026_01_07_000002_create_donation_transactions_table.php b/database/migrations/2026_01_07_000002_create_donation_transactions_table.php new file mode 100644 index 0000000..1fe18da --- /dev/null +++ b/database/migrations/2026_01_07_000002_create_donation_transactions_table.php @@ -0,0 +1,31 @@ +id(); + $table->unsignedBigInteger('user_id'); + $table->string('gateway', 64); + $table->string('transaction_id', 128)->nullable(); + $table->decimal('amount', 10, 2); + $table->string('currency', 8)->default('USD'); + $table->unsignedInteger('dp_awarded')->default(0); + $table->string('status', 32)->default('pending'); + $table->json('meta')->nullable(); + $table->timestamps(); + $table->index(['user_id', 'gateway', 'status']); + }); + } + + public function down(): void + { + Schema::dropIfExists('donation_transactions'); + } +}; + diff --git a/database/migrations/2026_01_09_000001_create_donation_plans_table.php b/database/migrations/2026_01_09_000001_create_donation_plans_table.php new file mode 100644 index 0000000..052ca9f --- /dev/null +++ b/database/migrations/2026_01_09_000001_create_donation_plans_table.php @@ -0,0 +1,29 @@ +id(); + $table->string('name'); + $table->text('description')->nullable(); + $table->decimal('amount', 10, 2); + $table->integer('dp_base'); + $table->integer('extra_pct')->default(0); + $table->boolean('is_promo')->default(false); + $table->boolean('active')->default(true); + $table->integer('sort_order')->default(0); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('donation_plans'); + } +}; \ No newline at end of file diff --git a/database/migrations/2026_01_28_170000_alter_users_add_status_options.php b/database/migrations/2026_01_28_170000_alter_users_add_status_options.php new file mode 100644 index 0000000..868e270 --- /dev/null +++ b/database/migrations/2026_01_28_170000_alter_users_add_status_options.php @@ -0,0 +1,26 @@ +string('status')->default('active')->index(); + $table->timestamp('last_login_at')->nullable(); + $table->boolean('is_banned')->default(false); + $table->text('notes')->nullable(); + }); + } + + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['status', 'last_login_at', 'is_banned', 'notes']); + }); + } +}; + diff --git a/database/migrations/2026_02_01_025016_settings.php b/database/migrations/2026_02_01_025016_settings.php new file mode 100644 index 0000000..2ae121f --- /dev/null +++ b/database/migrations/2026_02_01_025016_settings.php @@ -0,0 +1,29 @@ +id(); + $table->string('key')->unique(); + $table->string('value'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('settings'); + } +}; diff --git a/database/migrations/2026_03_12_000000_create_analytics_sessions_table.php b/database/migrations/2026_03_12_000000_create_analytics_sessions_table.php new file mode 100644 index 0000000..5b22fec --- /dev/null +++ b/database/migrations/2026_03_12_000000_create_analytics_sessions_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('visitor_id')->unique(); + $table->string('ip_address')->nullable(); + $table->string('user_agent')->nullable(); + $table->integer('duration_seconds')->default(0); + $table->integer('page_views')->default(0); + $table->boolean('is_bot')->default(false); + $table->timestamps(); + + $table->index('visitor_id'); + $table->index('created_at'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('analytics_sessions'); + } +}; diff --git a/database/migrations/2026_03_12_000001_create_analytics_page_views_table.php b/database/migrations/2026_03_12_000001_create_analytics_page_views_table.php new file mode 100644 index 0000000..fb7aeb0 --- /dev/null +++ b/database/migrations/2026_03_12_000001_create_analytics_page_views_table.php @@ -0,0 +1,37 @@ +id(); + $table->foreignId('session_id')->constrained('analytics_sessions')->onDelete('cascade'); + $table->string('page_url'); + $table->string('page_title')->nullable(); + $table->string('referrer')->nullable(); + $table->integer('time_on_page')->default(0); + $table->boolean('bounced')->default(false); + $table->timestamps(); + + $table->index('session_id'); + $table->index('page_url'); + $table->index('created_at'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('analytics_page_views'); + } +}; diff --git a/database/migrations/2026_03_14_030000_alter_settings_value_to_text.php b/database/migrations/2026_03_14_030000_alter_settings_value_to_text.php new file mode 100644 index 0000000..c2af959 --- /dev/null +++ b/database/migrations/2026_03_14_030000_alter_settings_value_to_text.php @@ -0,0 +1,45 @@ +id(); + $table->string('module_name', 100)->unique(); + $table->boolean('enabled')->default(true); + $table->string('module_type', 20)->default('core'); + $table->timestamps(); + + $table->index('module_type'); + }); + } + + public function down(): void + { + Schema::dropIfExists('managed_modules'); + } +}; diff --git a/database/migrations/2026_04_30_000001_add_multilingual_to_news.php b/database/migrations/2026_04_30_000001_add_multilingual_to_news.php new file mode 100644 index 0000000..3b4b9c3 --- /dev/null +++ b/database/migrations/2026_04_30_000001_add_multilingual_to_news.php @@ -0,0 +1,42 @@ +json('title_translations')->nullable()->after('title'); + $table->json('content_translations')->nullable()->after('content'); + $table->text('excerpt')->nullable()->after('content_translations'); + }); + + // Seed default multilingual settings if not present + $defaults = [ + 'multilingual_enabled' => '0', + 'available_locales' => '["en"]', + ]; + + foreach ($defaults as $key => $value) { + \DB::table('settings')->insertOrIgnore([ + 'key' => $key, + 'value' => $value, + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + } + + public function down(): void + { + Schema::table('news', function (Blueprint $table) { + $table->dropColumn(['title_translations', 'content_translations', 'excerpt']); + }); + + \DB::table('settings')->whereIn('key', ['multilingual_enabled', 'available_locales'])->delete(); + } +}; diff --git a/database/migrations/2026_05_17_000010_add_analytics_performance_indexes.php b/database/migrations/2026_05_17_000010_add_analytics_performance_indexes.php new file mode 100644 index 0000000..b99f757 --- /dev/null +++ b/database/migrations/2026_05_17_000010_add_analytics_performance_indexes.php @@ -0,0 +1,36 @@ +index(['is_bot', 'created_at'], 'analytics_sessions_is_bot_created_idx'); + }); + + Schema::table('analytics_page_views', function (Blueprint $table) { + $table->index(['session_id', 'created_at'], 'analytics_page_views_session_created_idx'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('analytics_page_views', function (Blueprint $table) { + $table->dropIndex('analytics_page_views_session_created_idx'); + }); + + Schema::table('analytics_sessions', function (Blueprint $table) { + $table->dropIndex('analytics_sessions_is_bot_created_idx'); + }); + } +}; diff --git a/database/migrations/2026_05_23_000001_create_update_logs_table.php b/database/migrations/2026_05_23_000001_create_update_logs_table.php new file mode 100644 index 0000000..ed4399d --- /dev/null +++ b/database/migrations/2026_05_23_000001_create_update_logs_table.php @@ -0,0 +1,27 @@ +id(); + $table->string('from_version', 50)->nullable(); + $table->string('to_version', 50); + $table->string('method', 20)->default('git'); // git | zip + $table->string('status', 20)->default('pending'); // pending | success | failed + $table->text('notes')->nullable(); + $table->foreignId('executed_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('update_logs'); + } +}; diff --git a/database/seeders/AnalyticsSeeder.php b/database/seeders/AnalyticsSeeder.php new file mode 100644 index 0000000..28a5942 --- /dev/null +++ b/database/seeders/AnalyticsSeeder.php @@ -0,0 +1,76 @@ + '/', 'title' => 'Home'], + ['url' => '/blog', 'title' => 'Blog'], + ['url' => '/products', 'title' => 'Products'], + ['url' => '/about', 'title' => 'About Us'], + ['url' => '/contact', 'title' => 'Contact'], + ['url' => '/blog/getting-started', 'title' => 'Getting Started Guide'], + ['url' => '/products/premium', 'title' => 'Premium Plan'], + ['url' => '/news', 'title' => 'News'], + ]; + + $countries = [ + 'United States', + 'Spain', + 'Mexico', + 'Argentina', + 'Colombia', + 'Chile', + ]; + + // Create 100 sample sessions with page views + for ($i = 0; $i < 100; $i++) { + $session = AnalyticsSession::create([ + 'visitor_id' => 'visitor_' . generateUniqueId()(), + 'ip_address' => fake()->ipv4(), + 'user_agent' => fake()->userAgent(), + 'country' => fake()->randomElement($countries), + 'city' => fake()->city(), + 'duration_seconds' => fake()->numberBetween(60, 1800), + 'page_views' => fake()->numberBetween(1, 10), + 'is_bot' => fake()->boolean(5), + 'created_at' => Carbon::now()->subDays(fake()->numberBetween(0, 30)), + 'updated_at' => Carbon::now()->subDays(fake()->numberBetween(0, 30)), + ]); + + // Create 1-5 page views per session + $pageCount = fake()->numberBetween(1, 5); + for ($j = 0; $j < $pageCount; $j++) { + $page = fake()->randomElement($pages); + AnalyticsPageView::create([ + 'session_id' => $session->id, + 'page_url' => $page['url'], + 'page_title' => $page['title'], + 'referrer' => fake()->randomElement([null, 'google.com', 'facebook.com', 'twitter.com']), + 'time_on_page' => fake()->numberBetween(10, 600), + 'bounced' => $pageCount === 1 ? fake()->boolean(40) : false, + 'created_at' => Carbon::now()->subDays(fake()->numberBetween(0, 30)), + 'updated_at' => Carbon::now()->subDays(fake()->numberBetween(0, 30)), + ]); + } + } + } +} + +// Helper function to generate unique IDs +function generateUniqueId(): callable +{ + static $counter = 0; + return fn() => ++$counter; +} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 048cb4a..100e3e1 100755 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -9,7 +9,9 @@ class DatabaseSeeder extends Seeder public function run(): void { $this->call([ + DonationPlansSeeder::class, RolesAndPermissionsSeeder::class, + ForumsSeeder::class, ]); } } \ No newline at end of file diff --git a/database/seeders/DonationPlansSeeder.php b/database/seeders/DonationPlansSeeder.php new file mode 100644 index 0000000..24ad2e3 --- /dev/null +++ b/database/seeders/DonationPlansSeeder.php @@ -0,0 +1,79 @@ + 'Bronze', + 'description' => 'Perfect starter package', + 'amount' => 4.50, + 'dp_base' => 500, + 'extra_pct' => 0, + 'is_promo' => false, + 'active' => true, + 'sort_order' => 1, + ], + [ + 'name' => 'Silver', + 'description' => 'Great value package', + 'amount' => 10.00, + 'dp_base' => 1100, + 'extra_pct' => 10, + 'is_promo' => false, + 'active' => true, + 'sort_order' => 2, + ], + [ + 'name' => 'Gold', + 'description' => 'Premium package with bonus', + 'amount' => 25.50, + 'dp_base' => 3000, + 'extra_pct' => 20, + 'is_promo' => false, + 'active' => true, + 'sort_order' => 3, + ], + [ + 'name' => 'Platinum', + 'description' => 'Ultimate package with maximum bonus', + 'amount' => 50.00, + 'dp_base' => 6500, + 'extra_pct' => 30, + 'is_promo' => false, + 'active' => true, + 'sort_order' => 4, + ], + [ + 'name' => 'Diamond', + 'description' => 'Exclusive package with VIP benefits', + 'amount' => 95.25, + 'dp_base' => 15000, + 'extra_pct' => 50, + 'is_promo' => false, + 'active' => true, + 'sort_order' => 5, + ], + [ + 'name' => 'Weekend Special', + 'description' => 'Limited time offer! 50% extra points', + 'amount' => 15.00, + 'dp_base' => 1500, + 'extra_pct' => 50, + 'is_promo' => true, + 'active' => true, + 'sort_order' => 6, + ], + ]; + + foreach ($plans as $plan) { + DonationPlan::create($plan); + } + } +} \ No newline at end of file diff --git a/database/seeders/ForumsSeeder.php b/database/seeders/ForumsSeeder.php index 7633df9..acf769b 100755 --- a/database/seeders/ForumsSeeder.php +++ b/database/seeders/ForumsSeeder.php @@ -3,10 +3,11 @@ namespace Database\Seeders; use Illuminate\Database\Seeder; -use App\Models\Forum; -use App\Models\Thread; -use App\Models\Post; +use Modules\Forum\Domain\Models\Forum; +use Modules\Forum\Domain\Models\Post; +use Modules\Forum\Domain\Models\Thread; use App\Models\User; +use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class ForumsSeeder extends Seeder @@ -98,10 +99,15 @@ public function run(): void 'order' => 2, ]); - // Get admin user or create one if not exists - $admin = User::role('Admin')->first(); + // Resolve an author user for sample content. + $admin = User::role('Admin')->first() ?? User::query()->first(); + if (!$admin) { - $admin = User::first(); + $admin = User::query()->create([ + 'name' => 'System Seeder', + 'email' => 'system-seeder@nexuscms.local', + 'password' => Hash::make(Str::random(32)), + ]); } // Create sample threads and posts diff --git a/database/seeders/RolesAndPermissionsSeeder.php b/database/seeders/RolesAndPermissionsSeeder.php index 3f1c2eb..bd2b1a6 100755 --- a/database/seeders/RolesAndPermissionsSeeder.php +++ b/database/seeders/RolesAndPermissionsSeeder.php @@ -16,28 +16,52 @@ public function run(): void // Crear permisos // Permisos para administración general - Permission::create(['name' => 'access.admin.panel']); - Permission::create(['name' => 'manage.users']); - Permission::create(['name' => 'manage.news']); - Permission::create(['name' => 'manage.settings']); - + Permission::firstOrCreate(['name' => 'access.admin.panel']); + Permission::firstOrCreate(['name' => 'manage.users']); + Permission::firstOrCreate(['name' => 'manage.news']); + Permission::firstOrCreate(['name' => 'manage.settings']); + Permission::firstOrCreate(['name' => 'manage.admin.users']); + Permission::firstOrCreate(['name' => 'manage.roles']); + Permission::firstOrCreate(['name' => 'manage.permissions']); + Permission::firstOrCreate(['name' => 'manage.pages']); + Permission::firstOrCreate(['name' => 'manage.announcements']); + Permission::firstOrCreate(['name' => 'view.logs']); + Permission::firstOrCreate(['name' => 'manage.backups']); + Permission::firstOrCreate(['name' => 'manage.modules']); + Permission::firstOrCreate(['name' => 'manage.realms']); + Permission::firstOrCreate(['name' => 'manage.bans']); + Permission::firstOrCreate(['name' => 'manage.reports']); + Permission::firstOrCreate(['name' => 'manage.store.products']); + Permission::firstOrCreate(['name' => 'manage.store.categories']); + Permission::firstOrCreate(['name' => 'view.store.transactions']); + Permission::firstOrCreate(['name' => 'view.analytics']); // Permisos para GameMasters - Permission::create(['name' => 'access.gm.panel']); - Permission::create(['name' => 'manage.characters']); - Permission::create(['name' => 'manage.items']); - Permission::create(['name' => 'moderate.chat']); + Permission::firstOrCreate(['name' => 'access.gm.panel']); + Permission::firstOrCreate(['name' => 'manage.characters']); + Permission::firstOrCreate(['name' => 'manage.items']); + Permission::firstOrCreate(['name' => 'moderate.chat']); // Permisos para usuarios normales - Permission::create(['name' => 'access.ucp']); - Permission::create(['name' => 'manage.own.account']); - Permission::create(['name' => 'view.characters']); + Permission::firstOrCreate(['name' => 'access.ucp']); + Permission::firstOrCreate(['name' => 'manage.own.account']); + Permission::firstOrCreate(['name' => 'view.characters']); + Permission::firstOrCreate(['name' => 'view.news']); + Permission::firstOrCreate(['name' => 'comment.news']); + Permission::firstOrCreate(['name' => 'forums.create.thread']); + Permission::firstOrCreate(['name' => 'forums.reply.post']); + Permission::firstOrCreate(['name' => 'forums.edit.own.post']); + Permission::firstOrCreate(['name' => 'forums.delete.own.post']); + Permission::firstOrCreate(['name' => 'store.browse']); + Permission::firstOrCreate(['name' => 'store.purchase']); + Permission::firstOrCreate(['name' => 'donate.browse']); + Permission::firstOrCreate(['name' => 'donate.purchase']); // Crear roles y asignar permisos - $adminRole = Role::create(['name' => 'Admin']); - $adminRole->givePermissionTo(Permission::all()); + $adminRole = Role::firstOrCreate(['name' => 'Admin']); + $adminRole->syncPermissions(Permission::all()); - $gmRole = Role::create(['name' => 'GameMaster']); - $gmRole->givePermissionTo([ + $gmRole = Role::firstOrCreate(['name' => 'GameMaster']); + $gmRole->syncPermissions([ 'access.gm.panel', 'manage.characters', 'manage.items', @@ -47,11 +71,21 @@ public function run(): void 'view.characters' ]); - $userRole = Role::create(['name' => 'User']); - $userRole->givePermissionTo([ + $userRole = Role::firstOrCreate(['name' => 'User']); + $userRole->syncPermissions([ 'access.ucp', 'manage.own.account', - 'view.characters' + 'view.characters', + 'view.news', + 'comment.news', + 'forums.create.thread', + 'forums.reply.post', + 'forums.edit.own.post', + 'forums.delete.own.post', + 'store.browse', + 'store.purchase', + 'donate.browse', + 'donate.purchase', ]); } -} \ No newline at end of file +} diff --git a/docs/roadmap/README.md b/docs/roadmap/README.md deleted file mode 100755 index d751f04..0000000 --- a/docs/roadmap/README.md +++ /dev/null @@ -1,258 +0,0 @@ -# 🌐 Select Your Language | Seleccione su Idioma - -- [English](#english) -- [Español](#español) - -# English - -# 🏛️ NexusCMS Project Governance - -*A comprehensive guide to project structure, roles and roadmap* - -## 📋 Table of Contents - -- [Roles & Responsibilities](#roles--responsibilities) -- [Decision Making Process](#decision-making-process) -- [Becoming a Maintainer](#becoming-a-maintainer) -- [Project Roadmap](#project-roadmap) -- [Communication](#communication) -- [Code of Conduct](#code-of-conduct) - -## 👥 Roles & Responsibilities - -### Core Maintainers -Core maintainers guide the project's direction, approve significant changes and manage the community. - -- 🎯 Make strategic roadmap decisions -- ⚙️ Approve/reject major architectural changes -- 📦 Manage version releases -- 👥 Oversee community and resolve conflicts - -### Collaborators -Active community members who regularly contribute to the project. - -- ✍️ Have repository write access -- 👀 Review and approve pull requests -- 💡 Participate in technical discussions -- 🛡️ Help maintain code quality - -### Contributors -Anyone who contributes through pull requests, bug reports or documentation. - -- 🔧 Submit pull requests for fixes/features -- 🐛 Report bugs and issues -- 📝 Improve documentation -- 💭 Participate in discussions - -## 🤝 Decision Making Process - -NexusCMS follows a consensus-based model with hierarchical considerations: - -### 1. Minor Decisions -Collaborators can approve small changes without core maintainer approval. - -### 2. Technical Decisions -For architectural changes or new features: -- 📋 Open GitHub issue proposal -- ⏳ 7-day discussion period -- 🤝 Seek collaborator/maintainer consensus -- ⚖️ Core maintainers have final say - -### 3. Strategic Decisions -For roadmap/vision changes: -- 📢 Core maintainers propose changes -- 👂 Community feedback gathered -- ✅ Final decision considers all input - -## 🌟 Becoming a Maintainer - -### Path to Maintainership: - -1. **Active Contributor** (3+ months of quality contributions) -2. **Collaborator** (Consistent contributions → Write access) -3. **Maintainer** - Must demonstrate: - - 💻 Technical excellence - - 🔍 Good code review judgment - - 🗣️ Effective community communication - - 🎯 Project vision alignment - -## 📅 Project Roadmap - -### Q2 2025 – Foundation Phase (May-June) -- **Audit & Planning** - - CodeIgniter CMS analysis - - Module/flow identification - - Laravel architecture design - - Multi-core emulator support planning -- **Environment Setup** - - Trinity/Azeroth DB migration schemas - - WoW encryption/connection library - -### Q3 2025 – Core Development (July-Sept) -- **CMS Core** - - Auth & session management - - User roles/permissions - - Basic content system - - Multi-core DB connectivity - - Emulator handshake integration - - Core flow testing - -### Q4 2025 – Feature Expansion (Oct-Dec) -- **CMS Features** - - Media management - - Comment system - - Notification system - - Multilingual config -- **Multi-Emulator Support** - - Dynamic realm connections - - Account/player sync - - Encryption library - - Responsive admin panel - -### Q1 2026 – Launch Phase (Jan-April) -- **Final QA** - - Load testing - - Security review - - Optimization - - Production deployment - - Documentation - -## 💬 Communication - -- 📌 GitHub Issues/PRs -- 🎮 Discord -- 🤝 Bi-monthly maintainer meetings -- 📢 Project website announcements - -## 📜 Code of Conduct - -All project participants must adhere to our Code of Conduct found in the documentation folder. - ---- - -# Español - -# 🏛️ Gobernanza del Proyecto NexusCMS - -*Una guía completa de la estructura del proyecto, roles y hoja de ruta* - -## 📋 Tabla de Contenidos - -- [Roles y Responsabilidades](#roles-y-responsabilidades) -- [Proceso de Toma de Decisiones](#proceso-de-toma-de-decisiones) -- [Convertirse en Mantenedor](#convertirse-en-mantenedor) -- [Hoja de Ruta del Proyecto](#hoja-de-ruta-del-proyecto) -- [Comunicación](#comunicación) -- [Código de Conducta](#código-de-conducta) - -## 👥 Roles y Responsabilidades - -### Mantenedores Principales -Los mantenedores principales guían la dirección del proyecto, aprueban cambios significativos y gestionan la comunidad. - -- 🎯 Tomar decisiones estratégicas sobre la hoja de ruta -- ⚙️ Aprobar/rechazar cambios arquitectónicos importantes -- 📦 Gestionar lanzamientos de versiones -- 👥 Supervisar la comunidad y resolver conflictos - -### Colaboradores -Miembros activos de la comunidad que contribuyen regularmente al proyecto. - -- ✍️ Tienen acceso de escritura al repositorio -- 👀 Revisan y aprueban pull requests -- 💡 Participan en discusiones técnicas -- 🛡️ Ayudan a mantener la calidad del código - -### Contribuyentes -Cualquiera que contribuya a través de pull requests, reportes de errores o documentación. - -- 🔧 Enviar pull requests para correcciones/características -- 🐛 Reportar errores y problemas -- 📝 Mejorar la documentación -- 💭 Participar en discusiones - -## 🤝 Proceso de Toma de Decisiones - -NexusCMS sigue un modelo basado en consenso con consideraciones jerárquicas: - -### 1. Decisiones Menores -Los colaboradores pueden aprobar cambios pequeños sin aprobación de los mantenedores principales. - -### 2. Decisiones Técnicas -Para cambios arquitectónicos o nuevas características: -- 📋 Abrir propuesta de issue en GitHub -- ⏳ Período de discusión de 7 días -- 🤝 Buscar consenso entre colaboradores/mantenedores -- ⚖️ Los mantenedores principales tienen la última palabra - -### 3. Decisiones Estratégicas -Para cambios en la hoja de ruta/visión: -- 📢 Los mantenedores principales proponen cambios -- 👂 Se recopila retroalimentación de la comunidad -- ✅ La decisión final considera todas las aportaciones - -## 🌟 Convertirse en Mantenedor - -### Camino hacia el Mantenimiento: - -1. **Contribuyente Activo** (3+ meses de contribuciones de calidad) -2. **Colaborador** (Contribuciones consistentes → Acceso de escritura) -3. **Mantenedor** - Debe demostrar: - - 💻 Excelencia técnica - - 🔍 Buen criterio en revisión de código - - 🗣️ Comunicación efectiva con la comunidad - - 🎯 Alineación con la visión del proyecto - -## 📅 Hoja de Ruta del Proyecto - -### Q2 2025 – Fase de Fundación (Mayo-Junio) -- **Auditoría y Planificación** - - Análisis del CMS CodeIgniter - - Identificación de módulos/flujos - - Diseño de arquitectura Laravel - - Planificación de soporte multi-emulador -- **Configuración del Entorno** - - Esquemas de migración DB Trinity/Azeroth - - Biblioteca de encriptación/conexión WoW - -### Q3 2025 – Desarrollo del Núcleo (Julio-Sept) -- **Núcleo del CMS** - - Gestión de autenticación y sesiones - - Roles/permisos de usuario - - Sistema básico de contenido - - Conectividad multi-núcleo DB - - Integración de handshake del emulador - - Pruebas de flujo del núcleo - -### Q4 2025 – Expansión de Características (Oct-Dic) -- **Características del CMS** - - Gestión de medios - - Sistema de comentarios - - Sistema de notificaciones - - Configuración multilingüe -- **Soporte Multi-Emulador** - - Conexiones dinámicas de reinos - - Sincronización de cuenta/jugador - - Biblioteca de encriptación - - Panel de administración responsivo - -### Q1 2026 – Fase de Lanzamiento (Enero-Abril) -- **Control de Calidad Final** - - Pruebas de carga - - Revisión de seguridad - - Optimización - - Despliegue en producción - - Documentación - -## 💬 Comunicación - -- 📌 Issues/PRs de GitHub -- 🎮 Discord -- 🤝 Reuniones bimensuales de mantenedores -- 📢 Anuncios en el sitio web del proyecto - -## 📜 Código de Conducta - -Todos los participantes del proyecto deben adherirse a nuestro Código de Conducta que se encuentra en la carpeta de documentación. - ---- diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..c5ec072 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,183 @@ +[phases.setup] +nixPkgs = ["...", "python311Packages.supervisor"] + +[phases.build] +cmds = [ + "mkdir -p /etc/supervisor/conf.d/", + "cp /assets/worker-*.conf /etc/supervisor/conf.d/", + "cp /assets/supervisord.conf /etc/supervisord.conf", + "chmod +x /assets/start.sh", + "..." +] + +[start] +cmd = '/assets/start.sh' + +[staticAssets] +"start.sh" = ''' +#!/bin/bash + +# Ensure storage and bootstrap cache are writable by www-data +chown -R www-data:www-data /app/storage /app/bootstrap/cache +chmod -R 775 /app/storage /app/bootstrap/cache + +# Transform the nginx configuration +node /assets/scripts/prestart.mjs /assets/nginx.template.conf /etc/nginx.conf + +# Start supervisor +supervisord -c /etc/supervisord.conf -n +''' + +"supervisord.conf" = ''' +[unix_http_server] +file=/assets/supervisor.sock + +[supervisord] +logfile=/var/log/supervisord.log +logfile_maxbytes=50MB +logfile_backups=10 +loglevel=info +pidfile=/assets/supervisord.pid +nodaemon=false +silent=false +minfds=1024 +minprocs=200 + +[rpcinterface:supervisor] +supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface + +[supervisorctl] +serverurl=unix:///assets/supervisor.sock + +[include] +files = /etc/supervisor/conf.d/*.conf +''' + +"worker-nginx.conf" = ''' +[program:worker-nginx] +process_name=%(program_name)s_%(process_num)02d +command=nginx -c /etc/nginx.conf +autostart=true +autorestart=true +stdout_logfile=/var/log/worker-nginx.log +stderr_logfile=/var/log/worker-nginx.log +''' + +"worker-phpfpm.conf" = ''' +[program:worker-phpfpm] +process_name=%(program_name)s_%(process_num)02d +command=php-fpm -y /assets/php-fpm.conf -F +autostart=true +autorestart=true +stdout_logfile=/var/log/worker-phpfpm.log +stderr_logfile=/var/log/worker-phpfpm.log +''' + +"worker-laravel.conf" = ''' +[program:worker-laravel] +process_name=%(program_name)s_%(process_num)02d +command=bash -c 'exec php /app/artisan queue:work --sleep=3 --tries=3 --max-time=3600' +user=www-data +autostart=true +autorestart=true +stopasgroup=true +killasgroup=true +numprocs=12 # To reduce memory/CPU usage, change to 2. +startsecs=0 +stopwaitsecs=3600 +stdout_logfile=/var/log/worker-laravel.log +stderr_logfile=/var/log/worker-laravel.log +''' + +"php-fpm.conf" = ''' +[www] +listen = 127.0.0.1:9000 +user = www-data +group = www-data +listen.owner = www-data +listen.group = www-data +pm = dynamic +pm.max_children = 50 +pm.min_spare_servers = 4 +pm.max_spare_servers = 32 +pm.start_servers = 18 +clear_env = no +php_admin_value[post_max_size] = 35M +php_admin_value[upload_max_filesize] = 30M +''' + +"nginx.template.conf" = ''' +user www-data www-data; +worker_processes 5; +daemon off; + +worker_rlimit_nofile 8192; + +events { + worker_connections 4096; # Default: 1024 +} + +http { + include $!{nginx}/conf/mime.types; + index index.html index.htm index.php; + + default_type application/octet-stream; + log_format main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + access_log /var/log/nginx-access.log; + error_log /var/log/nginx-error.log; + sendfile on; + tcp_nopush on; + server_names_hash_bucket_size 128; # this seems to be required for some vhosts + + server { + listen ${PORT}; + listen [::]:${PORT}; + server_name localhost; + + $if(NIXPACKS_PHP_ROOT_DIR) ( + root ${NIXPACKS_PHP_ROOT_DIR}; + ) else ( + root /app; + ) + + add_header X-Content-Type-Options "nosniff"; + + client_max_body_size 35M; + + index index.php; + + charset utf-8; + + + $if(NIXPACKS_PHP_FALLBACK_PATH) ( + location / { + try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string; + } + ) else ( + location / { + try_files $uri $uri/ /index.php?$query_string; + } + ) + + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + $if(IS_LARAVEL) ( + error_page 404 /index.php; + ) else () + + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + include $!{nginx}/conf/fastcgi_params; + include $!{nginx}/conf/fastcgi.conf; + } + + location ~ /\.(?!well-known).* { + deny all; + } + } +} +''' \ No newline at end of file diff --git a/resources/css/main.css b/resources/css/main.css index fcecbb3..da8f77a 100644 --- a/resources/css/main.css +++ b/resources/css/main.css @@ -310,4 +310,21 @@ .talent-point:hover { transform: scale(1.1); cursor: pointer; -} \ No newline at end of file +} + +/* ─── Menu Manager ──────────────────────────────────────────────────── */ +.drag-handle { cursor: grab; } +.drag-handle:active { cursor: grabbing; } +.drag-over { border-color: #3b82f6 !important; background: #eff6ff !important; } +.menu-item-card { transition: transform 0.15s, box-shadow 0.15s; } +.menu-item-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } +.child-item { margin-left: 1.5rem; border-left: 2px solid #e5e7eb; } +.nested-indicator { width: 12px; display: inline-block; } +.icon-preview { width: 24px; text-align: center; } +.route-chip { font-size: 11px; padding: 2px 6px; background: #f3f4f6; border-radius: 4px; color: #6b7280; } +.module-badge { font-size: 10px; padding: 1px 5px; border-radius: 3px; } +.module-badge.enabled { background: #d1fae5; color: #065f46; } +.module-badge.disabled { background: #fee2e2; color: #991b1b; } +.add-route-btn { font-size: 11px; padding: 3px 8px; } +.panel-section { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; margin-bottom: 1rem; } +.panel-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } \ No newline at end of file diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 5f1390b..3f923bd 100755 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -1,4 +1,22 @@ import axios from 'axios'; -window.axios = axios; +window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +// Read the CSRF token from the tag. +// Laravel emits this in the layout; without it, every POST/PUT/DELETE +// from axios would fail with 419. We log a warning (not throw) if the +// meta tag is missing so the page still loads — the warning is enough +// to catch the issue during development. +const csrfMeta = document.head.querySelector('meta[name="csrf-token"]'); + +if (csrfMeta && csrfMeta.content) { + window.axios.defaults.headers.common['X-CSRF-TOKEN'] = csrfMeta.content; +} else { + // eslint-disable-next-line no-console + console.warn( + '[NexusCMS] not found. ' + + 'Any axios POST/PUT/DELETE will return 419. ' + + 'Make sure your layout includes @csrf or the meta tag explicitly.' + ); +} diff --git a/resources/js/editor/ckeditor.js b/resources/js/editor/ckeditor.js index bf569bf..7d8960c 100644 --- a/resources/js/editor/ckeditor.js +++ b/resources/js/editor/ckeditor.js @@ -1,44 +1,34 @@ import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; -document.addEventListener('DOMContentLoaded', function() { +document.addEventListener('DOMContentLoaded', function () { const editorElement = document.querySelector('#editor'); - - if (editorElement) { - ClassicEditor - .create(editorElement, { - toolbar: ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', '|', 'undo', 'redo'], - placeholder: 'Write your comment here...', - }) - .then(editor => { - // Configuración adicional si es necesaria - editor.editing.view.change(writer => { - writer.setStyle('min-height', '150px', editor.editing.view.document.getRoot()); - }); - - // Solución para el problema de validación del formulario - const form = editorElement.closest('form'); - if (form) { - form.addEventListener('submit', function() { - // Asegurarse de que el contenido del editor se transfiera al textarea antes de enviar - editorElement.value = editor.getData(); - }); - } - - // Eliminar el atributo required del textarea original para evitar problemas de validación - editorElement.removeAttribute('required'); - - // Agregar validación personalizada - if (form) { - form.addEventListener('submit', function(e) { - if (editor.getData().trim() === '') { - e.preventDefault(); - alert('Please write a comment before submitting.'); - } - }); - } - }) - .catch(error => { - console.error('Error al inicializar CKEditor:', error); + + if (!editorElement) return; + + ClassicEditor + .create(editorElement, { + toolbar: ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', '|', 'undo', 'redo'], + placeholder: 'Write your comment here...', + }) + .then(editor => { + editor.editing.view.change(writer => { + writer.setStyle('min-height', '150px', editor.editing.view.document.getRoot()); }); - } + + editorElement.removeAttribute('required'); + + const form = editorElement.closest('form'); + if (form) { + form.addEventListener('submit', function (e) { + editorElement.value = editor.getData(); + if (editor.getData().trim() === '') { + e.preventDefault(); + alert('Please write a comment before submitting.'); + } + }); + } + }) + .catch(error => { + console.error('CKEditor comment init error:', error); + }); }); \ No newline at end of file diff --git a/resources/js/scripts/listColumns.js b/resources/js/scripts/listColumns.js new file mode 100644 index 0000000..29bc498 --- /dev/null +++ b/resources/js/scripts/listColumns.js @@ -0,0 +1,72 @@ +class ListColumns { + constructor() { + this.modal = document.getElementById('columnsModal'); + this.checkboxes = document.querySelectorAll('.column-toggle'); + this.toggleButtons = document.querySelectorAll('.toggle-columns-modal'); + this.resetButton = document.querySelector('.reset-columns'); + } + + init() { + if (!this.modal) return; + + // Toggle Modal Listeners + this.toggleButtons.forEach(btn => { + btn.addEventListener('click', (e) => { + e.preventDefault(); + this.toggleModal(); + }); + }); + + // Reset Button Listener + if (this.resetButton) { + this.resetButton.addEventListener('click', (e) => { + e.preventDefault(); + this.resetColumns(); + }); + } + + // Checkbox Listeners + this.checkboxes.forEach(checkbox => { + checkbox.addEventListener('change', (e) => { + this.toggleColumn(e.target); + }); + }); + } + + toggleModal() { + this.modal.classList.toggle('hidden'); + } + + toggleColumn(checkbox) { + const columnName = checkbox.getAttribute('data-column'); + if (!columnName) return; + + const columns = document.querySelectorAll('.column-' + columnName); + const isVisible = checkbox.checked; + + columns.forEach(col => { + if (isVisible) { + col.classList.remove('hidden'); + } else { + col.classList.add('hidden'); + } + }); + } + + resetColumns() { + this.checkboxes.forEach(checkbox => { + checkbox.checked = true; + this.toggleColumn(checkbox); + }); + } +} + +// Initialize +const listColumns = new ListColumns(); +if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', () => listColumns.init()); +} else { + listColumns.init(); +} + +export default ListColumns; diff --git a/resources/lang/en.json b/resources/lang/en.json new file mode 100644 index 0000000..d617170 --- /dev/null +++ b/resources/lang/en.json @@ -0,0 +1,4 @@ +{ + "Latest News": "Latest News 213", + "Stay up to date with the latest server news, events, and updates.": "Stay up to date with the latest server news, events, and updates." +} \ No newline at end of file diff --git a/resources/views/armory/partials/pvp.blade.php b/resources/views/armory/partials/pvp.blade.php deleted file mode 100644 index 47f1f31..0000000 --- a/resources/views/armory/partials/pvp.blade.php +++ /dev/null @@ -1,97 +0,0 @@ - diff --git a/resources/views/armory/partials/statistics.blade.php b/resources/views/armory/partials/statistics.blade.php deleted file mode 100644 index 5796946..0000000 --- a/resources/views/armory/partials/statistics.blade.php +++ /dev/null @@ -1,85 +0,0 @@ - \ No newline at end of file diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 6a49f84..33ad8fc 100755 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -152,7 +152,7 @@ class="w-full py-3 px-4 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-bl

Don't have an account? - Register here + Register here

diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index c6ca2e4..0c899ba 100755 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -1,64 +1,179 @@ @extends('layouts.main') @section('content') -
+
-
-

- Create Account -

+
+ +
+

+ Create Account +

+

Join us and start your journey today

+
-
+ @csrf +
- - + +
+
+ + + +
+ +
@error('name') -

{{ $message }}

+

+ + + + {{ $message }} +

@enderror
+
- - + +
+
+ + + +
+ +
@error('email') -

{{ $message }}

+

+ + + + {{ $message }} +

@enderror
+
- - + +
+
+ + + +
+ + +
+

Must be at least 8 characters

@error('password') -

{{ $message }}

+

+ + + + {{ $message }} +

@enderror
+
- - + +
+
+ + + +
+ + +
+ -
-

- Already have an account? - - Sign in here - -

+ +
+
+
+
+
+ Already registered? +
+
+ + +
+ + +

+ By creating an account, you agree to our + Terms of Service + and + Privacy Policy +

+ + @endsection \ No newline at end of file diff --git a/resources/views/errors/maintenance.blade.php b/resources/views/errors/maintenance.blade.php new file mode 100644 index 0000000..9bcbafa --- /dev/null +++ b/resources/views/errors/maintenance.blade.php @@ -0,0 +1,67 @@ + + + + + + {{ $title ?? 'Maintenance Mode' }} + + + + + +
+
+
+ + + +
+

Maintenance Mode

+
+
+ +

+ {{ $message }} +

+ + +
+ @can('access.admin.panel') + + Admin Panel + + @endcan + + @if(auth()->check()) +
+ @csrf + +
+ @else + + Login + + @endif +
+ +
+ © {{ date('Y') }} {{ settings('site_name', 'NexusCMS') }}. All rights reserved. +
+
+ + diff --git a/resources/views/forums/index.blade.php b/resources/views/forums/index.blade.php index 512c6fe..b015b86 100755 --- a/resources/views/forums/index.blade.php +++ b/resources/views/forums/index.blade.php @@ -2,158 +2,240 @@ @section('title', 'Forums') -@section('styles') - - -@endsection - @section('content') -
-
-

Community Forums

-
- Home - » - Forums -
- -
-
-
-
- -
-
-

Welcome to our community!

-

Join the discussion and connect with other members in our forums.

+
+
+ {{-- Header Section --}} +
+
+ + + Home + + + + + Forums +
+ +
+
+
+
+
+
+
+
+ +
+
+
+

+ Community Forums +

+

+ Connect, share, and learn with thousands of passionate members in our vibrant community. +

+
+
+
+
+
+
+
+
+
+
+ {{ App\Models\User::where('updated_at', '>=', now()->subMinutes(15))->count() }} + members online +
+
+
+
-
- - - {{ App\Models\User::where('updated_at', '>=', now()->subMinutes(15))->count() }} online now - -
-
- @foreach($categories as $category) -
-
-

- - {{ $category->name }} -

-
- -
- @foreach($category->subforums as $forum) -
-
-
-
- + {{-- Forum Categories --}} +
+ @foreach($categories as $category) +
+
+
+
+
+
+
+
+ +
+
+

+ {{ $category->name }} +

+
+ + {{ $category->subforums->count() }} {{ Str::plural('forum', $category->subforums->count()) }} + +
- -
- @if($forum->latest_thread) - -
- by - {{ $forum->latestThread->user->name }} - {{ $forum->latestThread->created_at->diffForHumans() }} -
- @else -
- No threads yet +
+ +
+
+ @foreach($category->subforums as $forum) +
+
+
+
+
+
+
+ +
+
+
+
+ + {{ $forum->name }} + + + {{ $forum->threads()->count() }} {{ Str::plural('thread', $forum->threads()->count()) }} + +
+

+ {{ $forum->description }} +

+
+
+ +
+ @if($forum->latest_thread) +
+
+ +
+
+ {{ $forum->latestThread->user->name }} + by {{ $forum->latestThread->user->name }} +
+
+ {{ $forum->latestThread->created_at->diffForHumans() }} +
+
+
+
+ @else +
+ +

No threads yet

+

Be the first to start a discussion!

+
+ @endif +
+
+
- @endif + @endforeach
@endforeach
-
- @endforeach -
-
-
-
- + {{-- Statistics Section --}} +
+
+
+
+
+
-
-

Forum Statistics

-

Join our growing community

-
-
-
-
-
{{ App\Models\User::count() }}
-
- Members -
-
-
-
{{ App\Models\Thread::count() }}
-
- Threads + +
+
+
+
+
+
+ +
+
+
+

Community Statistics

+

Our growing family by the numbers

+
+
-
-
-
{{ App\Models\Post::count() }}
-
- Posts + +
+
+
+
+
+
+ {{ number_format(App\Models\User::count()) }} +
+
+ + Registered Members +
+
+ + Growing every day +
+
+
+
+ +
+
+
+
+
+ {{ number_format(\Modules\Forum\Domain\Models\Thread::count()) }} +
+
+ + Active Threads +
+
+ + Full of discussions +
+
+
+
+ +
+
+
+
+
+ {{ number_format(\Modules\Forum\Domain\Models\Post::count()) }} +
+
+ + Total Posts +
+
+ + Community contributions +
+
+
+
diff --git a/resources/views/forums/thread.blade.php b/resources/views/forums/thread.blade.php index 2d712c5..6534850 100755 --- a/resources/views/forums/thread.blade.php +++ b/resources/views/forums/thread.blade.php @@ -114,7 +114,7 @@
- {!! $post->content !!} + {{ $post->content }}
diff --git a/resources/views/home/index.blade.php b/resources/views/home/index.blade.php index 1a5dea1..3e42df2 100755 --- a/resources/views/home/index.blade.php +++ b/resources/views/home/index.blade.php @@ -95,42 +95,81 @@ class="absolute top-1/2 left-1/2 w-80 h-80 rounded-full bg-cyan-500/10 opacity-5

Stay up to date with the latest server news, events, and updates.

-
- + + @endif
- @foreach($data['news'] as $item) -
-
{{ $item->published_at->format('F d, Y') }}
-

{{ $item->title }}

-

{{ Str::limit($item->content, 100) }}

- - Read More - - - - + @forelse($data['news'] as $item) + +
+ @if(!empty($item->image)) + {{ $item->title }} + @else +
+ + + +
+ @endif +
+
+
{{ ($item->published_at ?? $item->created_at)->format('F d, Y') }}
+

{{ $item->title }}

+

{{ Str::limit(strip_tags($item->excerpt ?? $item->content), 90) }}

+ + Read More + + + + +
+
+ @empty +
+

No news available.

- @endforeach + @endforelse
- +
View All News diff --git a/resources/views/install/index.blade.php b/resources/views/install/index.blade.php index bb28208..4f0da39 100644 --- a/resources/views/install/index.blade.php +++ b/resources/views/install/index.blade.php @@ -3,307 +3,1147 @@ - NexusCMS Installer - + + NexusCMS — Installation Wizard + - -
- -
-
- - - -
-

NexusCMS Installer

-

Configure the application settings and database connection.

+ +
+ + {{-- Sidebar --}} + + + {{-- Content --}} +
+
+ Step 1 of 6 +
+
+
+
+
+
+
+
- -
-
- @csrf +
+
+

License

+

Read and accept the terms of the GNU General Public License v3.0.

+
- -