delete() публичный Метод

Delete a group
Автор: Steve Montambeault
public delete ( $id ) : void
$id
Результат void
Пример #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @author Steve Montambeault
  * @link   http://stevemo.ca
  *
  * @param $id
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy($id)
 {
     try {
         $this->groups->delete($id);
         return Redirect::route('cpanel.groups.index')->with('success', Lang::get('cpanel::groups.delete_success'));
     } catch (GroupNotFoundException $e) {
         return Redirect::back()->with('error', $e->getMessage());
     }
 }