public function run() { $faker = Faker::create(); foreach (range(1, 10) as $index) { Stockpackage::create([]); } }
/** * 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); }