testing php storm code cleanup and styling
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
class S3Storage extends BaseModel
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
protected $casts = [
|
||||
'key' => 'encrypted',
|
||||
@@ -18,12 +19,16 @@ class S3Storage extends BaseModel
|
||||
$selectArray = collect($select)->concat(['id']);
|
||||
return S3Storage::whereTeamId(session('currentTeam')->id)->select($selectArray->all())->orderBy('name');
|
||||
}
|
||||
public function awsUrl() {
|
||||
|
||||
public function awsUrl()
|
||||
{
|
||||
return "{$this->endpoint}/{$this->bucket}";
|
||||
}
|
||||
public function testConnection() {
|
||||
|
||||
public function testConnection()
|
||||
{
|
||||
set_s3_target($this);
|
||||
return \Storage::disk('custom-s3')->files();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user