Skip to content

Commit

Permalink
feat: support laravel in php
Browse files Browse the repository at this point in the history
resolves #1171
  • Loading branch information
JanDeDobbeleer committed Feb 3, 2022
1 parent 08f7a6a commit 696bdda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/docs/segment-php.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down
2 changes: 1 addition & 1 deletion src/segments/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 696bdda

Please sign in to comment.