Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perbaiki gambar tidak tampil di artikel #904

Merged
merged 8 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APP_ENV=production
APP_KEY=base64:rN3vXWFRHDKFP2sMySe9f4gna7WulisoXTqn7Yo4Ye8=
APP_DEBUG=false
APP_LOG_LEVEL=debug
APP_URL=http://demo.opendk.my.id/
APP_URL=https://demodk.opendesa.id
APP_DEMO=false

DB_CONNECTION=mysql
Expand Down
5 changes: 5 additions & 0 deletions app/Models/Artikel.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public function getGambarAttribute()
return $this->attributes['gambar'] ? Storage::url('artikel/' . $this->attributes['gambar']) : null;
}

public function getIsiAttribute()
{
return str_replace('//storage', '/storage', $this->attributes['isi']);
}

public function scopeStatus($query, $value = 1)
{
return $query->where('status', $value);
Expand Down
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Terima kasih pada totoprayogo1916 yang terus berkontribusi.
4. [#892](https://github.com/OpenSID/OpenDK/issues/892) Perbaikan tidak bisa akses data pantau pada mode produksi.
5. [#890](https://github.com/OpenSID/OpenDK/issues/890) Perbaikan tidak bisa akses modul info-sistem.
6. [#885](https://github.com/OpenSID/OpenDK/issues/885) Perbaikan validasi form pengurus.
7. [#901](https://github.com/OpenSID/OpenDK/issues/901) Perbaikan gambar artikel tidak tampil.


#### Penyesuaian Teknis
Expand Down