Learner\Repositories\UserRepositoryInterface::remove PHP Method

remove() public method

Remove the user to trash.
public remove ( integer $id )
$id integer
    public function remove($id);

Usage Example

Ejemplo n.º 1
0
 /**
  * Remove user to trash.
  *
  * /admin/users/remove/{id} delete
  *
  * @param  integer $id
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function removeToTrash($id)
 {
     $this->users->remove($id);
     Log::info(Auth::user()->username . ': ' . lang('log.removeUserSuccess', 'delete a user to trash.'));
     return $this->responseJson(['message' => '该用户移动到回收站']);
 }