|Pengumuman newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman query() * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereDibuatOleh($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereIdPengumuman($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereIsi($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereJudul($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereTanggal($value) * @method static \Illuminate\Database\Eloquent\Builder|Pengumuman whereUpdatedAt($value) * @mixin \Eloquent */ class Pengumuman extends Model { use HasFactory; protected $table = 'pengumuman'; protected $primaryKey = 'id_pengumuman'; protected $fillable = [ 'judul', 'isi', 'tanggal', 'dibuat_oleh' ]; protected $casts = [ 'tanggal' => 'date', ]; public function pembuat() { return $this->belongsTo(User::class, 'dibuat_oleh', 'id'); } }