Skip to content

Commit aab5333

Browse files
committed
laravel 6
1 parent 279ee75 commit aab5333

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
{
22
"name": "akaunting/version",
33
"description": "Version management package for Laravel.",
4-
"keywords": ["laravel", "version"],
4+
"keywords": [
5+
"laravel",
6+
"version"
7+
],
58
"license": "MIT",
69
"authors": [
710
{
811
"name": "Denis Duliçi",
912
"email": "info@akaunting.com",
10-
"homepage": "https://akaunting.com",
11-
"role": "Developer"
13+
"homepage": "https://akaunting.com",
14+
"role": "Developer"
1215
}
1316
],
1417
"require": {
1518
"php": ">=5.5.9",
1619
"laravel/framework": ">=5.2.0"
1720
},
18-
"autoload": {
19-
"psr-4": {
20-
"Akaunting\\Version\\": "./src"
21-
},
21+
"autoload": {
22+
"psr-4": {
23+
"Akaunting\\Version\\": "./src"
24+
},
2225
"files": [
2326
"src/helpers.php"
2427
]
25-
},
28+
},
2629
"extra": {
2730
"laravel": {
2831
"providers": [

src/Version.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Akaunting\Version;
44

5+
use Illuminate\Support\Str;
6+
57
class Version
68
{
79
/**
@@ -36,7 +38,7 @@ public function __construct($app = null)
3638

3739
$this->app = $app;
3840
$this->version = $app->version();
39-
$this->is_lumen = str_contains($this->version, 'Lumen');
41+
$this->is_lumen = Str::contains($this->version, 'Lumen');
4042
}
4143

4244
/**

0 commit comments

Comments
 (0)