You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributions.md
-68Lines changed: 0 additions & 68 deletions
Original file line number
Diff line number
Diff line change
@@ -54,74 +54,6 @@ If you believe you have found a bug in the framework, but are unsure how to fix
54
54
55
55
If are unsure how to write a failing unit test for a bug, review the other unit tests included with the framework. If you're still lost, you may ask for help in the `#laravel` IRC channel (Freenode).
56
56
57
-
### Via Laravel Liferaft
58
-
59
-
If you aren't able to write a unit test for your issue, Laravel Liferaft allows you to create a demo application that recreates the issue. Liferaft can even automate the forking and sending of pull requests to the Laravel repository. Once your Liferaft application is submitted, a Laravel maintainer can run your application on [Homestead](/docs/4.2/homestead) and review your issue.
60
-
61
-
<aname="creating-liferaft-applications"></a>
62
-
## Creating Liferaft Applications
63
-
64
-
Laravel Liferaft provides a fresh, innovative way to contribute to Laravel. First, you will need to install the Liferaft CLI tool via Composer:
65
-
66
-
### Installing Liferaft
67
-
68
-
composer global require "laravel/liferaft=~1.0"
69
-
70
-
Make sure to place the `~/.composer/vendor/bin` directory in your PATH so the `liferaft` executable is found when you run the `liferaft` command in your terminal.
71
-
72
-
### Authenticating With GitHub
73
-
74
-
Before getting started with Liferaft, you need to register a GitHub personal access token. You can generate a personal access token from your [GitHub settings panel](https://github.com/settings/applications). The default scopes selected by GitHub will be sufficient; however, if you wish, you may grant the `delete_repo` scope so Liferaft can delete your old sandbox applications.
75
-
76
-
liferaft auth my-github-token
77
-
78
-
### Create A New Liferaft Application
79
-
80
-
To create a new Liferaft application, just use the `new` command:
81
-
82
-
liferaft new my-bug-fix
83
-
84
-
This command will do several things. First, it will fork the [Laravel GitHub repository](https://github.com/laravel/laravel) to your GitHub account. Next, it will clone the forked repository to your machine and install the Composer dependencies. Once the repository has been installed, you can begin recreating your issue within the Liferaft application!
85
-
86
-
### Recreating Your Issue
87
-
88
-
After creating a Liferaft application, simply recreate your issue. You are free to define routes, create Eloquent models, and even create database migrations! The only requirement is that your application is able to run on a fresh [Laravel Homestead](/docs/4.2/homestead) virtual machine. This allows Laravel maintainers to easily run your application on their own machines.
89
-
90
-
Once you have recreated your issue within the Liferaft application, you're ready to send it back to the Laravel repository for review!
91
-
92
-
### Send Your Application For Review
93
-
94
-
Once you have recreated your issue, it's almost time to send it for review! However, you should first complete the `liferaft.md` file that was generated in your Liferaft application. The first line of this file will be the title of your pull request. The remaining content will be included in the pull request body. Of course, GitHub Flavored Markdown is supported.
95
-
96
-
After completing the `liferaft.md` file, push all of your changes to your GitHub repository. Next, just run the Liferaft `throw` command from your application's directory:
97
-
98
-
liferaft throw
99
-
100
-
This command will create a pull request against the Laravel GitHub repository. A Laravel maintainer can easily grab your application and run it in their own Homestead environment!
101
-
102
-
<aname="grabbing-liferaft-applications"></a>
103
-
## Grabbing Liferaft Applications
104
-
105
-
Intrested in contributing to Laravel? Liferaft makes it painless to install Liferaft applications and view them on your own [Homestead environment](/docs/4.2/homestead).
106
-
107
-
First, for convenience, clone the [laravel/laravel](https://github.com/laravel/laravel) into a `liferaft` directory on your machine:
Next, check out the `develop` branch so you will be able to install Liferaft applications that target both stable and upcoming Laravel releases:
112
-
113
-
git checkout -b develop origin/develop
114
-
115
-
Next, you can run the Liferaft `grab` command from your repository directory. For example, if you want to install the Liferaft application associated with pull request #3000, you should run the following command:
116
-
117
-
liferaft grab 3000
118
-
119
-
The `grab` command will create a new branch on your Liferaft directory, and pull in the changes for the specified pull request. Once the Liferaft application is installed, simply serve the directory through your [Homestead](/docs/4.2/homestead) virtual machine! Once you debug the issue, don't forget to send a pull request to the [laravel/framework](https://github.com/laravel/framework) repository with the proper fix!
120
-
121
-
Have an extra hour and want to solve a random issue? Just run `grab` without a pull request ID:
0 commit comments