|
1 | | -# laravel-coderunner |
2 | | -Add Laravel support to CodeRunner (Farewell Tinkerwell) |
| 1 | +# Laravel CodeRunner |
| 2 | +Add Laravel support to CodeRunner (Tinker in CodeRunner). |
| 3 | + |
| 4 | +## Installation |
| 5 | + |
| 6 | +Install this package globally via [Composer](https://getcomposer.org/). |
| 7 | + |
| 8 | +``` |
| 9 | +composer global require stichoza/laravel-coderunner |
| 10 | +``` |
| 11 | + |
| 12 | +## Usage |
| 13 | + |
| 14 | +### Add Laravel in CodeRunner langauges |
| 15 | + |
| 16 | +1. Go to CodeRunner preferences. |
| 17 | +1. Navigate to Languages tab. |
| 18 | +1. Right-click on `PHP` and select Duplicate. |
| 19 | +1. Name new language `Laravel`. |
| 20 | +1. Write following in the "Run Command" field: |
| 21 | + ```bash |
| 22 | + laravel-coderunner $filename |
| 23 | + ``` |
| 24 | + |
| 25 | +### Running code for specific project. |
| 26 | +By default, the code is evaluated in default Laravel installation that is provided with this package. Follow this steps if you want to run code in different project: |
| 27 | + |
| 28 | +1. Assuming you already have Laravel available in CodeRunner, click "Run Settings..." button right next to Run and Stop buttons. |
| 29 | +1. Enter path to your project in Arguments field. |
0 commit comments