Web FT UNTAN (Laravel 8) versi lama + dump database ftuntan_web_profil
Kode dari ftuntan_main dengan dependensi diperbarui untuk PHP 8.3 (perbaikan insiden 27 Okt 2026). Dump database di database/sql/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class InformasiTerbaru extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public static function informasiTerbaru()
|
||||
{
|
||||
$kerjasama_mitra_kolaborasis = DB::table('kerjasama_mitra_kolaborasis')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$hasil_karyas = DB::table('hasil_karyas')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$kegiatan_eksternal_kampus = DB::table('kegiatan_eksternal_kampus')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$kegiatan_internal_kampus = DB::table('kegiatan_internal_kampus')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$lomba_kompetisis = DB::table('lomba_kompetisis')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$ukm_mahasiswas = DB::table('ukm_mahasiswas')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$prestasi_aktivitas_mahasiswas = DB::table('prestasi_aktivitas_mahasiswas')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$layanan_mahasiswas = DB::table('layanan_mahasiswas')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$informasi_beasiswas = DB::table('informasi_beasiswas')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$penelitians = DB::table('penelitians')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
$pengabdian_ke_masyarakats = DB::table('pengabdian_ke_masyarakats')
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL);
|
||||
|
||||
$informasiTerbaru = DB::table('beritas')
|
||||
->union($kerjasama_mitra_kolaborasis)
|
||||
->union($hasil_karyas)
|
||||
->union($kegiatan_eksternal_kampus)
|
||||
->union($kegiatan_internal_kampus)
|
||||
->union($lomba_kompetisis)
|
||||
->union($ukm_mahasiswas)
|
||||
->union($prestasi_aktivitas_mahasiswas)
|
||||
->union($layanan_mahasiswas)
|
||||
->union($informasi_beasiswas)
|
||||
->union($penelitians)
|
||||
->union($pengabdian_ke_masyarakats)
|
||||
->where('release_date', '<=', date('Y-m-d'))
|
||||
->where('deleted_at', NULL)
|
||||
->orderBy('release_date', 'DESC');
|
||||
return $informasiTerbaru;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user