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