stichoza/laravel-coderunner
Composer 安装命令:
composer require stichoza/laravel-coderunner
包简介
Add Laravel support to CodeRunner
README 文档
README
Add Laravel support to CodeRunner (Tinker in CodeRunner).
Installation
Install this package globally via Composer.
composer global require stichoza/laravel-coderunner
And initialize default laravel app (optional).
laravel-coderunner install-default
Usage
Add Laravel in CodeRunner langauges
- Go to CodeRunner preferences.
- Navigate to Languages tab.
- Right-click on
PHPand select Duplicate. - Name new language
Laravel. - Write following in the "Run Command" field:
laravel-coderunner $filename
Note
If you have composer installed correctly in your system, vendor binaries would be already added in your .profile or .bash_profile. If not, add it to your profile paths, or otherwise go to CodeRunner preferences, navigate to Advanced tab and add binary path (e.g. /Users/YOUR_USERNAME/.composer/vendor/bin) to PATH shell variable:
Running in default laravel app
Default laravel app is already installed via laravel-coderunner install-default command. If you want to reset the default app, you can run:
laravel-coderunner reset-default
Running in specific project
By default, the code is evaluated in default Laravel installation described above. Follow this steps if you want to run code in different project:
- Assuming you already have Laravel available in CodeRunner, click "Run Settings..." button right next to Run and Stop buttons.
- Enter absolute path to your project in Arguments field.
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-02



