Example #1
0
 /**
  * Menampilkan Resource
  *
  * @param  int $id
  *
  * @return Response
  */
 public function show($id)
 {
     return $this->bankaccount->findOrFail($id);
 }
Example #2
0
File: test.php Project: emayk/ics
         $stock->save();
     }
     for ($history = 0; $history < 9; $history++) {
         //		Buat Stock Detail/History
         if ($history % 2 == 0 || $history == 0) {
             $typeHistory = 'in';
         } else {
             $typeHistory = 'out';
         }
         $firstHistory = $history == 0;
         \Emayk\Ics\Repo\Stockproducthistory\Stockproducthistory::createHistoryStockSample($stockId, $typeHistory, $firstHistory);
     }
     return "Done " . time();
 });
 Route::get('productImage', function () {
     return \Emayk\Ics\Repo\Bankaccount\Bankaccount::createMassiveSampleRecord(false, 100);
     //			$image = new \Emayk\Ics\Support\Dummy\Faker\AbstractGenerate();
     //			$record = $image->createRecordImage(1,'hdsahdsah');
     //			return $record;
     for ($rec = 90; $rec < 100; $rec++) {
         $ids[] = \Emayk\Ics\Repo\Images\Images::getIdsOrCreate($rec, 'dsadhsuadhsua112' . $rec);
     }
     return $ids;
 });
 Route::get('product', function () {
     return \Emayk\Ics\Repo\Products\Products::generateSampleProducts(1000);
 });
 Route::get('unittype', function () {
     return \Emayk\Ics\Repo\Unittypes\Unittypes::getIdsOrCreate();
 });
 Route::get('productcat', function () {