A little ecommerce pet project to play around with GraphQL, Next.js and websockets
Since sail is located in a custom path bin/sail
, you need to modify your ~/.bashrc
(or something else if you're using a different sh) to something like this:
alias sail='[ -f sail ] && bash sail || [ -f sail ] && bash vendor/bin/sail || bash bin/sail'
sail artisan ide-helper:generate
PHPDocs for facades
sail artisan ide-helper:models
PHPDocs for models
sail artisan ide-helper:meta
Add PHPStorm meta
Follow these steps to create patches using Composer for a package:
-
Create *.php.old file:
- Locate the class you want to modify inside the
vendor/package
directory. - Copy the class file and paste it in the same directory with a
.php.old
extension (e.g.,ClassName.php.old
).
- Locate the class you want to modify inside the
-
Edit *.php File:
- Open the original class file (without the
.old
extension) in a text editor. - Make the necessary modifications to the code.
- Open the original class file (without the
-
Generate Patch Files:
- Run the following command to generate patch files:
make patch-generate
- Run the following command to generate patch files:
-
Apply Patches:
- Run the following command to apply the patches:
make composer-install
- Run the following command to apply the patches:
-
Confirm Patch Installation:
- After applying the patches, confirm the installation was successful by testing the functionality.
-
Commit Changes to Git:
- If the patches work as intended, commit the changes to your Git repository:
git add patches/your-patch.patch git commit -m "Apply patches for custom modifications"
- If the patches work as intended, commit the changes to your Git repository: