/**
  *
  */
 private function emptyUserTables()
 {
     foreach ($this->user->all() as $user) {
         $this->user->delete($user->id);
     }
     foreach ($this->role->all() as $role) {
         $this->role->delete($role->id);
     }
 }
Beispiel #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->role->delete($id);
     flash(trans('core::messages.resource.resource deleted', ['name' => trans('user::roles.title.role')]));
     return redirect()->route('backend::user.role.index');
 }
Beispiel #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int      $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->role->delete($id);
     flash(trans('user::messages.role deleted'));
     return redirect()->route('admin.user.role.index');
 }