feat: support laravel in php

resolves #1171
This commit is contained in:
Jan De Dobbeleer 2022-02-03 11:50:15 +01:00 committed by Jan De Dobbeleer
parent 08f7a6a17e
commit 696bdda00a
2 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,8 @@ Display the currently active php version.
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
- display_mode: `string` - determines when the segment is displayed
- `always`: the segment is always displayed
- `files`: the segment is only displayed when `*.php, composer.json, composer.lock, .php-version` files are present (default)
- `files`: the segment is only displayed when `*.php`, `composer.json`, `composer.lock`, `.php-version` or `blade.php`
files are present (default)
## Template ([info][templates])

View file

@ -17,7 +17,7 @@ func (p *Php) Init(props properties.Properties, env environment.Environment) {
p.language = language{
env: env,
props: props,
extensions: []string{"*.php", "composer.json", "composer.lock", ".php-version"},
extensions: []string{"*.php", "composer.json", "composer.lock", ".php-version", "blade.php"},
commands: []*cmd{
{
executable: "php",