model = $test; $function = Str::camel($action); return $this->$function($test, $request); } public function copy(Test $test, Request $request) { return $test; } public function empty(Test $test, Request $request) { return $test; } }