public function find($controller, $id)
    {
        $model = $controller->model();
        if ($controller->withTrashed()) {
            return $model::withTrashed()->find($id);
        } else {
            return $model::find($id);
        }
    }