Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Color::destroy($id);
 }
Example #2
0
 /**
  * Delete the given Color.
  *
  * @param  int      $id
  * @return Redirect
  */
 public function getDelete($id = null)
 {
     $color = Color::destroy($id);
     // Redirect to the group management page
     return redirect('admin/colors')->with('success', Lang::get('message.success.delete'));
 }