Skip to content

Commit de41c5e

Browse files
committed
- Added __toString() method
1 parent e8f84b5 commit de41c5e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to `laravel-licenser` will be documented in this file.
44

5+
### 3.4.0
6+
- Added __toString() method
7+
58
### 3.3.0
69
- Added a getter for the owner of the license
710

src/License.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ protected function getModel(Model $owner)
5858
return $x;
5959
}
6060

61+
public function __toString()
62+
{
63+
return $this->name();
64+
}
65+
6166
/**
6267
* Returns the owner of the license
6368
*

0 commit comments

Comments
 (0)