Skip to content

Commit fa4442c

Browse files
committed
Refactor ShareLink model to use config helper and increment version to 2.5.1
1 parent 6f0889a commit fa4442c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/Models/ShareLink.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6-
use Illuminate\Support\Facades\Config;
76
use Illuminate\Support\Str;
87

98
class ShareLink extends Model
@@ -13,7 +12,7 @@ protected static function booted(): void
1312
static::saving(function (ShareLink $shareLink) {
1413
$token = Str::random(32);
1514
$shareLink->token = $token;
16-
$shareLink->link = url(Config::get('nova.path')).'/arsip-dokumen/'.$token;
15+
$shareLink->link = url(config('nova.path')).'/arsip-dokumen/'.$token;
1716
});
1817
}
1918
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@
8888
},
8989
"minimum-stability": "dev",
9090
"prefer-stable": true,
91-
"version": "2.5.0"
91+
"version": "2.5.1"
9292
}

0 commit comments

Comments
 (0)