model = app(OrderItems::class); $function = Str::camel($exim); return $this->$function($request); } public function import(Request $request) { return $this->model; } public function export(Request $request) { return $this->model; } }