We welcome contributions to the Project! Whether you're fixing a bug, adding a feature, or improving the documentation, your contributions are highly valued.
Steps to Contribute
-
Fork the Repository
First, fork the repository on GitHub. This will allow you to make changes and submit a pull request. -
Clone Your Fork
Clone the repository to your local machine:git clone https://github.com/your-username/laravel-followable.git
-
Create a Branch Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make Your Changes
Make the necessary changes in the codebase. If you’re fixing a bug or adding a feature, please ensure that your code adheres to the coding standards and passes existing tests.
- Run Tests
If you’re adding new functionality or fixing an issue, please write tests to verify that your changes work as expected. This ensures the stability and reliability of the package.
- Run Tests Before submitting your pull request, run the tests to make sure everything works properly:
composer test
- Commit Your Changes
Once you’ve made your changes, commit them to your branch:
git add .
git commit -m "feat: add your commit message here"
- Push Changes
Push your changes to your fork on GitHub:
git push origin feature/your-feature-name
- Create a Pull Request
Go to your GitHub fork, click on the Pull Request tab, and submit a pull request. Make sure to describe your changes in detail, explaining what problem your changes solve or what feature you’ve added.
Local Testing
To test the Package locally on your system, follow the steps below:
- Clone the Repository
If you haven’t already, clone the repository to your local machine:
git clone https://github.com/akira-io/laravel-followable.git
- Install Dependencies
Navigate to the project directory and install the required dependencies using Composer:
cd laravel-followable
composer install
- Link the page locally
To link the package locally, use Laravel’s package:discover command. This allows you to test the package without having to push it to a remote repository.
Run the following command to discover the package:
composer dump-autoload
Alternatively, you can use the path repository method in your main Laravel project’s composer.json file:
"repositories": [
{
"type": "path",
"url": "/path/to/laravel-followable"
}
]
Then, run the following command:
composer require akira-io/laravel-followable
the installation process was covered in the Installation section.