public function run() { $faker = Faker::create(); foreach (range(1, 10) as $index) { Overlord::create([]); } }
/** * Store a newly created overlord in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), Overlord::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } Overlord::create($data); return Redirect::route('overlords.index'); }