public function run() { $faker = Faker::create(); foreach (range(1, 10) as $index) { Mword::create([]); } }
public function update($id) { $word = Mword::find($id); if (!$word) { return $this->respondNotFound(); } if ($word->update(Input::all())) { return $this->respond($this->transform_word($word)); } return $this->respondServerError(); }