We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3773b18 commit 6fd55d3Copy full SHA for 6fd55d3
src/Models/Media.php
@@ -3,6 +3,7 @@
3
4
namespace Imahmood\FileStorage\Models;
5
6
+use Illuminate\Contracts\Filesystem\Filesystem;
7
use Illuminate\Database\Eloquent\Casts\Attribute;
8
use Illuminate\Database\Eloquent\Factories\HasFactory;
9
use Illuminate\Database\Eloquent\Model;
@@ -162,7 +163,7 @@ private function makeUrl(string $path): string
162
163
{
164
$visibility = config("filesystems.disks.{$this->disk}.visibility");
165
- if ($visibility === 'public') {
166
+ if ($visibility === Filesystem::VISIBILITY_PUBLIC) {
167
return Storage::disk($this->disk)->url($path);
168
}
169
0 commit comments