app/Http/Controllers/UserController.php
/**
     * @api {delete} api/user/id Request Delete User by ID
     * @apiName DeleteUserByID
     * @apiGroup User
     *
     * @apiParam {Number} id id of user
     *
     * @apiError UserNotFound The <code>id</code> of the User was not found.
     * @apiError NoAccessRight Only authenticated Admins can access the data.
     */
@api {delete} api/user/id Request Delete User by ID
@apiName DeleteUserByID
@apiGroup User

@apiParam {Number} id id of user

@apiError UserNotFound The id of the User was not found.
@apiError NoAccessRight Only authenticated Admins can access the data.
@api { delete } api / user / id Request Delete User by ID @apiName DeleteUserByID @apiGroup User @apiParam { Number } id id of user @apiError UserNotFound The id of the User was not found . @apiError NoAccessRight Only authenticated Admins can access the data .
public function destroy($id)
    {
        $this->middleware('auth');
        return $this->user->delete($id);
    }
public function destroy ( $ id ) { $ this -> middleware ( 'auth' ) ; return $ this -> user -> delete ( $ id ) ; }
@api {delete} api/user/id Request Delete User by ID
 @apiName DeleteUserByID
 @apiGroup User
@api { delete } api / user / id Request Delete User by ID @apiName DeleteUserByID @apiGroup User