Skip to content

Commit

Permalink
Set default to 0 for $id param in get()
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 14, 2021
1 parent 3fe5747 commit 542ad47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jasekz/Laradrop/Services/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class File extends FileModel
* @return array
* @throws \Exception
*/
public function get($parentId)
public function get($parentId = 0)
{
try {
$out = [];
Expand Down

0 comments on commit 542ad47

Please sign in to comment.