コード例 #1
0
 public function run()
 {
     DB::table('ppl_koperasi_laporans')->delete();
     Laporan::create(array('id' => NULL, 'id_koperasi' => 1, 'id_pengirim' => '100000000000000', 'tahun' => 2015, 'file' => 'koperasisatu.zip', 'permodalan' => 1, 'kualitas_aktiva_produktif' => 1, 'manajemen' => 1, 'efisiensi' => 1, 'likuiditas' => 1, 'kemandirian_dan_pertumbuhan' => 1, 'jatidiri_koperasi' => 1, 'terverifikasi' => 1));
     Laporan::create(array('id' => NULL, 'id_koperasi' => 2, 'id_pengirim' => '100000000000000', 'tahun' => 2015, 'file' => 'koperasidua.zip'));
     Laporan::create(array('id' => NULL, 'id_koperasi' => 3, 'id_pengirim' => '100000000000000', 'tahun' => 2015, 'file' => 'koperasitiga.zip'));
 }
コード例 #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(LaporanRequest $request)
 {
     $laporan = new Laporan();
     $request->tarikhSiap = Carbon::now();
     //        dd($request->all());
     if ($laporan->create($request->all())) {
         \Session::flash('success', 'Aduan berjaya didaftar');
     } else {
         \Session::flash('error', 'Aduan gagal didaftar');
     }
     return Redirect::route('members.user.laporan.index');
 }
コード例 #3
0
ファイル: Laporan.php プロジェクト: ariborneo/KoperasiBandung
 public static function createLaporan($id_koperasi, $id_pengirim, $file, $tahun)
 {
     $laporan = Laporan::create(array('id_koperasi' => $id_koperasi, 'id_pengirim' => $id_pengirim, 'file' => $file, 'tahun' => $tahun));
 }