public function store($id) { $tgl = Request::input('waktuaktif'); $pengumuman = new Pengumuman(); $pengumuman->judul = Request::input('judulPengumuman'); $pengumuman->isi = Request::input('isiPengumuman'); $pengumuman->waktuaktif = $tgl; $pengumuman->kodekelas = $id; $pengumuman->save(); }