예제 #1
0
 public function run()
 {
     $faker = Faker::create();
     foreach (range(1, 10) as $index) {
         Stockpackage::create([]);
     }
 }
예제 #2
0
 /**
  * Show the form for creating a new resource.
  * GET /stockuppackages/create
  *
  * @return Response
  */
 public function create()
 {
     //
     $order_id = Input::get('order_id');
     $order = Order::find($order_id);
     $package_no = Stockpackage::all()->count();
     return View::make('admin.stockuppackages.create')->with('order', $order)->with('package_no', $package_no);
 }