Ejemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->locale->find($id)->delete();
     return Redirect::route('admin.locales.index');
 }
Ejemplo n.º 2
0
 /**
  * Update a role.
  *
  * @param  array  $inputs
  * @param  int    $id
  * @return void
  */
 public function update($input, $id)
 {
     //dd($input['enabled']);
     $locale = Locale::find($id);
     $locale->update($input);
 }